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 (obj == null) {
64  			return false;
65  		}
66  		if (obj == this) {
67  			return true;
68  		}
69  		if (obj.getClass() != getClass()) {
70  			return false;
71  		}
72  		Genre rhs = (Genre) obj;
73  		return EqualsBuilder.reflectionEquals(this, rhs);
74  	}
75  
76  }