LanguageData.java
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.02.25 at 12:05:09 AM CET
//
package com.hack23.cia.model.internal.application.system.impl;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hack23.cia.model.common.api.ModelObject;
import com.hack23.cia.model.common.impl.xml.XmlDateTimeTypeAdapter;
/**
* <p>Java class for LanguageData complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="LanguageData">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="modelObjectId" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="modelObjectVersion" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="createdDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="languageName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="languageCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="translationStatus" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="languageEnabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="autoTranslationEnabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="lastModifiedDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LanguageData", propOrder = {
"modelObjectId",
"modelObjectVersion",
"createdDate",
"languageName",
"languageCode",
"translationStatus",
"languageEnabled",
"autoTranslationEnabled",
"lastModifiedDate"
})
@Entity(name = "LanguageData")
@Table(name = "LANGUAGE_DATA")
@Inheritance(strategy = InheritanceType.JOINED)
public class LanguageData
implements ModelObject
{
/**
*
*/
private static final long serialVersionUID = 1L;
protected Integer modelObjectId;
protected int modelObjectVersion;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeTypeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected Date createdDate;
protected String languageName;
protected String languageCode;
protected String translationStatus;
protected Boolean languageEnabled;
protected Boolean autoTranslationEnabled;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(XmlDateTimeTypeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected Date lastModifiedDate;
@XmlAttribute(name = "Hjid")
protected Long hjid;
/**
* Gets the value of the modelObjectId property.
*
* @return
* possible object is
* {@link Integer }
*
*/
@Basic
@Column(name = "MODEL_OBJECT_ID", precision = 10, scale = 0)
public Integer getModelObjectId() {
return modelObjectId;
}
/**
* Sets the value of the modelObjectId property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setModelObjectId(final Integer value) {
this.modelObjectId = value;
}
/**
* Gets the value of the modelObjectVersion property.
*
*/
@Version
@Column(name = "MODEL_OBJECT_VERSION")
public int getModelObjectVersion() {
return modelObjectVersion;
}
/**
* Sets the value of the modelObjectVersion property.
*
*/
public void setModelObjectVersion(final int value) {
this.modelObjectVersion = value;
}
/**
* Gets the value of the createdDate property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "CREATED_DATE")
@Temporal(TemporalType.TIMESTAMP)
public Date getCreatedDate() {
return createdDate;
}
/**
* Sets the value of the createdDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCreatedDate(final Date value) {
this.createdDate = value;
}
/**
* Gets the value of the languageName property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "LANGUAGE_NAME")
public String getLanguageName() {
return languageName;
}
/**
* Sets the value of the languageName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLanguageName(final String value) {
this.languageName = value;
}
/**
* Gets the value of the languageCode property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "LANGUAGE_CODE")
public String getLanguageCode() {
return languageCode;
}
/**
* Sets the value of the languageCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLanguageCode(final String value) {
this.languageCode = value;
}
/**
* Gets the value of the translationStatus property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "TRANSLATION_STATUS")
public String getTranslationStatus() {
return translationStatus;
}
/**
* Sets the value of the translationStatus property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTranslationStatus(final String value) {
this.translationStatus = value;
}
/**
* Gets the value of the languageEnabled property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
@Basic
@Column(name = "LANGUAGE_ENABLED")
public Boolean isLanguageEnabled() {
return languageEnabled;
}
/**
* Sets the value of the languageEnabled property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setLanguageEnabled(final Boolean value) {
this.languageEnabled = value;
}
/**
* Gets the value of the autoTranslationEnabled property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
@Basic
@Column(name = "AUTO_TRANSLATION_ENABLED")
public Boolean isAutoTranslationEnabled() {
return autoTranslationEnabled;
}
/**
* Sets the value of the autoTranslationEnabled property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setAutoTranslationEnabled(final Boolean value) {
this.autoTranslationEnabled = value;
}
/**
* Gets the value of the lastModifiedDate property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "LAST_MODIFIED_DATE")
@Temporal(TemporalType.TIMESTAMP)
public Date getLastModifiedDate() {
return lastModifiedDate;
}
/**
* Sets the value of the lastModifiedDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLastModifiedDate(final Date value) {
this.lastModifiedDate = value;
}
public LanguageData withModelObjectId(final Integer value) {
setModelObjectId(value);
return this;
}
public LanguageData withModelObjectVersion(final int value) {
setModelObjectVersion(value);
return this;
}
public LanguageData withCreatedDate(final Date value) {
setCreatedDate(value);
return this;
}
public LanguageData withLanguageName(final String value) {
setLanguageName(value);
return this;
}
public LanguageData withLanguageCode(final String value) {
setLanguageCode(value);
return this;
}
public LanguageData withTranslationStatus(final String value) {
setTranslationStatus(value);
return this;
}
public LanguageData withLanguageEnabled(final Boolean value) {
setLanguageEnabled(value);
return this;
}
public LanguageData withAutoTranslationEnabled(final Boolean value) {
setAutoTranslationEnabled(value);
return this;
}
public LanguageData withLastModifiedDate(final Date value) {
setLastModifiedDate(value);
return this;
}
@Override
public final String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
/**
* Gets the value of the hjid property.
*
* @return
* possible object is
* {@link Long }
*
*/
@Id
@Column(name = "HJID")
@GeneratedValue(strategy = GenerationType.AUTO)
public Long getHjid() {
return hjid;
}
/**
* Sets the value of the hjid property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setHjid(final Long value) {
this.hjid = value;
}
@Override
public final boolean equals(final Object obj) {
return EqualsBuilder.reflectionEquals(this, obj);
}
@Override
public final int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}