ViewAuditDataSummary.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.data.audit.impl;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
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;
/**
* <p>Java class for ViewAuditDataSummary complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ViewAuditDataSummary">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="dataType" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="dataSize" type="{http://www.w3.org/2001/XMLSchema}long"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ViewAuditDataSummary", propOrder = {
"id",
"dataType",
"dataSize"
})
@Entity(name = "ViewAuditDataSummary")
@Table(name = "VIEW_AUDIT_DATA_SUMMARY")
@Inheritance(strategy = InheritanceType.JOINED)
public class ViewAuditDataSummary
implements ModelObject
{
/**
*
*/
private static final long serialVersionUID = 1L;
protected long id;
@XmlElement(required = true)
protected String dataType;
protected long dataSize;
/**
* Gets the value of the id property.
*
*/
@Id
@Column(name = "ID")
public long getId() {
return id;
}
/**
* Sets the value of the id property.
*
*/
public void setId(final long value) {
this.id = value;
}
/**
* Gets the value of the dataType property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "DATA_TYPE")
public String getDataType() {
return dataType;
}
/**
* Sets the value of the dataType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDataType(final String value) {
this.dataType = value;
}
/**
* Gets the value of the dataSize property.
*
*/
@Basic
@Column(name = "DATA_SIZE", precision = 20)
public long getDataSize() {
return dataSize;
}
/**
* Sets the value of the dataSize property.
*
*/
public void setDataSize(final long value) {
this.dataSize = value;
}
public ViewAuditDataSummary withId(final long value) {
setId(value);
return this;
}
public ViewAuditDataSummary withDataType(final String value) {
setDataType(value);
return this;
}
public ViewAuditDataSummary withDataSize(final long value) {
setDataSize(value);
return this;
}
@Override
public final String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
@Override
public final boolean equals(final Object obj) {
return EqualsBuilder.reflectionEquals(this, obj);
}
@Override
public final int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}