View Javadoc
1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2017.04.23 at 07:23:18 PM CEST 
6   //
7   
8   
9   package com.hack23.cia.model.internal.application.view.impl;
10  
11  import java.io.Serializable;
12  import javax.persistence.Basic;
13  import javax.persistence.Column;
14  import javax.persistence.Entity;
15  import javax.persistence.GeneratedValue;
16  import javax.persistence.GenerationType;
17  import javax.persistence.Id;
18  import javax.persistence.Inheritance;
19  import javax.persistence.InheritanceType;
20  import javax.persistence.Table;
21  import javax.xml.bind.annotation.XmlAccessType;
22  import javax.xml.bind.annotation.XmlAccessorType;
23  import javax.xml.bind.annotation.XmlAttribute;
24  import javax.xml.bind.annotation.XmlType;
25  import com.hack23.cia.model.common.api.ModelObject;
26  import org.jvnet.jaxb2_commons.lang.Equals;
27  import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
28  import org.jvnet.jaxb2_commons.lang.HashCode;
29  import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
30  import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
31  import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
32  import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
33  import org.jvnet.jaxb2_commons.lang.ToString;
34  import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
35  import org.jvnet.jaxb2_commons.locator.ObjectLocator;
36  import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
37  
38  
39  /**
40   * <p>Java class for TargetProfileContent complex type.
41   * 
42   * <p>The following schema fragment specifies the expected content contained within this class.
43   * 
44   * <pre>
45   * &lt;complexType name="TargetProfileContent"&gt;
46   *   &lt;complexContent&gt;
47   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
48   *       &lt;sequence&gt;
49   *         &lt;element name="modelObjectId" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/&gt;
50   *         &lt;element name="modelObjectVersion" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/&gt;
51   *       &lt;/sequence&gt;
52   *     &lt;/restriction&gt;
53   *   &lt;/complexContent&gt;
54   * &lt;/complexType&gt;
55   * </pre>
56   * 
57   * 
58   */
59  @XmlAccessorType(XmlAccessType.FIELD)
60  @XmlType(name = "TargetProfileContent", propOrder = {
61      "modelObjectId",
62      "modelObjectVersion"
63  })
64  @Entity(name = "TargetProfileContent")
65  @Table(name = "TARGET_PROFILE_CONTENT")
66  @Inheritance(strategy = InheritanceType.JOINED)
67  public class TargetProfileContent
68      implements Serializable, ModelObject, Equals, HashCode, ToString
69  {
70  
71      private final static long serialVersionUID = 1L;
72      protected Integer modelObjectId;
73      protected Integer modelObjectVersion;
74      @XmlAttribute(name = "Hjid")
75      protected Long hjid;
76  
77      /**
78       * Gets the value of the modelObjectId property.
79       * 
80       * @return
81       *     possible object is
82       *     {@link Integer }
83       *     
84       */
85      @Basic
86      @Column(name = "MODEL_OBJECT_ID", precision = 10, scale = 0)
87      public Integer getModelObjectId() {
88          return modelObjectId;
89      }
90  
91      /**
92       * Sets the value of the modelObjectId property.
93       * 
94       * @param value
95       *     allowed object is
96       *     {@link Integer }
97       *     
98       */
99      public void setModelObjectId(Integer value) {
100         this.modelObjectId = value;
101     }
102 
103     /**
104      * Gets the value of the modelObjectVersion property.
105      * 
106      * @return
107      *     possible object is
108      *     {@link Integer }
109      *     
110      */
111     @Basic
112     @Column(name = "MODEL_OBJECT_VERSION", precision = 10, scale = 0)
113     public Integer getModelObjectVersion() {
114         return modelObjectVersion;
115     }
116 
117     /**
118      * Sets the value of the modelObjectVersion property.
119      * 
120      * @param value
121      *     allowed object is
122      *     {@link Integer }
123      *     
124      */
125     public void setModelObjectVersion(Integer value) {
126         this.modelObjectVersion = value;
127     }
128 
129     public TargetProfileContent withModelObjectId(Integer value) {
130         setModelObjectId(value);
131         return this;
132     }
133 
134     public TargetProfileContent withModelObjectVersion(Integer value) {
135         setModelObjectVersion(value);
136         return this;
137     }
138 
139     public String toString() {
140         final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
141         final StringBuilder buffer = new StringBuilder();
142         append(null, buffer, strategy);
143         return buffer.toString();
144     }
145 
146     public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
147         strategy.appendStart(locator, this, buffer);
148         appendFields(locator, buffer, strategy);
149         strategy.appendEnd(locator, this, buffer);
150         return buffer;
151     }
152 
153     public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
154         {
155             Integer theModelObjectId;
156             theModelObjectId = this.getModelObjectId();
157             strategy.appendField(locator, this, "modelObjectId", buffer, theModelObjectId);
158         }
159         {
160             Integer theModelObjectVersion;
161             theModelObjectVersion = this.getModelObjectVersion();
162             strategy.appendField(locator, this, "modelObjectVersion", buffer, theModelObjectVersion);
163         }
164         return buffer;
165     }
166 
167     /**
168      * Gets the value of the hjid property.
169      * 
170      * @return
171      *     possible object is
172      *     {@link Long }
173      *     
174      */
175     @Id
176     @Column(name = "HJID")
177     @GeneratedValue(strategy = GenerationType.AUTO)
178     public Long getHjid() {
179         return hjid;
180     }
181 
182     /**
183      * Sets the value of the hjid property.
184      * 
185      * @param value
186      *     allowed object is
187      *     {@link Long }
188      *     
189      */
190     public void setHjid(Long value) {
191         this.hjid = value;
192     }
193 
194     public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
195         if ((object == null)||(this.getClass()!= object.getClass())) {
196             return false;
197         }
198         if (this == object) {
199             return true;
200         }
201         final TargetProfileContent that = ((TargetProfileContent) object);
202         {
203             Integer lhsModelObjectId;
204             lhsModelObjectId = this.getModelObjectId();
205             Integer rhsModelObjectId;
206             rhsModelObjectId = that.getModelObjectId();
207             if (!strategy.equals(LocatorUtils.property(thisLocator, "modelObjectId", lhsModelObjectId), LocatorUtils.property(thatLocator, "modelObjectId", rhsModelObjectId), lhsModelObjectId, rhsModelObjectId)) {
208                 return false;
209             }
210         }
211         {
212             Integer lhsModelObjectVersion;
213             lhsModelObjectVersion = this.getModelObjectVersion();
214             Integer rhsModelObjectVersion;
215             rhsModelObjectVersion = that.getModelObjectVersion();
216             if (!strategy.equals(LocatorUtils.property(thisLocator, "modelObjectVersion", lhsModelObjectVersion), LocatorUtils.property(thatLocator, "modelObjectVersion", rhsModelObjectVersion), lhsModelObjectVersion, rhsModelObjectVersion)) {
217                 return false;
218             }
219         }
220         return true;
221     }
222 
223     public boolean equals(Object object) {
224         final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
225         return equals(null, null, object, strategy);
226     }
227 
228     public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
229         int currentHashCode = 1;
230         {
231             Integer theModelObjectId;
232             theModelObjectId = this.getModelObjectId();
233             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modelObjectId", theModelObjectId), currentHashCode, theModelObjectId);
234         }
235         {
236             Integer theModelObjectVersion;
237             theModelObjectVersion = this.getModelObjectVersion();
238             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modelObjectVersion", theModelObjectVersion), currentHashCode, theModelObjectVersion);
239         }
240         return currentHashCode;
241     }
242 
243     public int hashCode() {
244         final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
245         return this.hashCode(null, strategy);
246     }
247 
248 }