View Javadoc
1   package org.oxerr.viagogo.model.response.catalog;
2   
3   import java.util.List;
4   
5   import org.apache.commons.lang3.builder.EqualsBuilder;
6   import org.apache.commons.lang3.builder.HashCodeBuilder;
7   import org.oxerr.viagogo.model.response.Resource;
8   
9   import io.openapitools.jackson.dataformat.hal.annotation.EmbeddedResource;
10  
11  @io.openapitools.jackson.dataformat.hal.annotation.Resource
12  public class Genre extends Resource {
13  
14  	private static final long serialVersionUID = 2023021301L;
15  
16  	/**
17  	 * The genre identifier.
18  	 */
19  	private String id;
20  
21  	/**
22  	 * The name of the genre.
23  	 */
24  	private String name;
25  
26  	/**
27  	 * The external mappings for this genre.
28  	 */
29  	@EmbeddedResource
30  	private List<ExternalMapping> externalMappings;
31  
32  	public String getId() {
33  		return id;
34  	}
35  
36  	public void setId(String id) {
37  		this.id = id;
38  	}
39  
40  	public String getName() {
41  		return name;
42  	}
43  
44  	public void setName(String name) {
45  		this.name = name;
46  	}
47  
48  	public List<ExternalMapping> getExternalMappings() {
49  		return externalMappings;
50  	}
51  
52  	public void setExternalMappings(List<ExternalMapping> externalMappings) {
53  		this.externalMappings = externalMappings;
54  	}
55  
56  	@Override
57  	public int hashCode() {
58  		return HashCodeBuilder.reflectionHashCode(this);
59  	}
60  
61  	@Override
62  	public boolean equals(Object obj) {
63  		if (this == obj) {
64  			return true;
65  		}
66  		if (!(obj instanceof Genre)) {
67  			return false;
68  		}
69  		Genre rhs = (Genre) obj;
70  		return EqualsBuilder.reflectionEquals(this, rhs);
71  	}
72  
73  }