
nz.co.senanque.workflow.nmcinstances.NMC Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.11.17 at 01:51:26 PM NZDT
//
package nz.co.senanque.workflow.nmcinstances;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
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.Transient;
import javax.persistence.Version;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import nz.co.senanque.validationengine.ObjectMetadata;
import nz.co.senanque.validationengine.ValidationObject;
import nz.co.senanque.validationengine.ValidationSession;
import nz.co.senanque.validationengine.ValidationUtils;
import nz.co.senanque.validationengine.annotations.Digits;
import nz.co.senanque.validationengine.annotations.Label;
import nz.co.senanque.validationengine.annotations.Length;
import nz.co.senanque.validationengine.annotations.Range;
import nz.co.senanque.validationengine.annotations.ReadOnly;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for NMC complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="NMC">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="version" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="claimId">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="10"/>
* </restriction>
* </simpleType>
* </element>
* <element name="memberId">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="10"/>
* </restriction>
* </simpleType>
* </element>
* <element name="memberType" type="{http://www.senanque.co.nz/pizzaorder}MemberType"/>
* <element name="reservationId">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="10"/>
* </restriction>
* </simpleType>
* </element>
* <element name="requestedAmount" type="{http://www.w3.org/2001/XMLSchema}float"/>
* <element name="rejectReason">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="50"/>
* </restriction>
* </simpleType>
* </element>
* <element name="status">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="50"/>
* </restriction>
* </simpleType>
* </element>
* <element name="notes">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="200"/>
* </restriction>
* </simpleType>
* </element>
* <element name="sameClaim" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="sameAmount" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="hasFunds" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="loop" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="rejected" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NMC", propOrder = {
"id",
"version",
"claimId",
"memberId",
"memberType",
"reservationId",
"requestedAmount",
"rejectReason",
"status",
"notes",
"sameClaim",
"sameAmount",
"hasFunds",
"loop",
"rejected"
})
@XmlRootElement(name = "NMC")
@Entity(name = "NMC")
@Table(name = "NMC")
@Inheritance(strategy = InheritanceType.JOINED)
public class NMC
implements ValidationObject, Equals, HashCode, ToString
{
protected long id;
protected long version;
@XmlElement(required = true)
protected String claimId;
@XmlElement(required = true)
protected String memberId;
@XmlElement(required = true)
protected MemberType memberType;
@XmlElement(required = true, defaultValue = "none")
protected String reservationId;
protected float requestedAmount;
@XmlElement(required = true)
protected String rejectReason;
@XmlElement(required = true)
protected String status;
@XmlElement(required = true)
protected String notes;
protected boolean sameClaim;
protected boolean sameAmount;
protected boolean hasFunds;
protected boolean loop;
protected boolean rejected;
@XmlTransient
protected ValidationSession m_validationSession;
@XmlTransient
protected ObjectMetadata m_metadata;
@XmlTransient
public final static String ID = "id";
@XmlTransient
public final static String VERSION = "version";
@XmlTransient
public final static String CLAIMID = "claimId";
@XmlTransient
public final static String MEMBERID = "memberId";
@XmlTransient
public final static String MEMBERTYPE = "memberType";
@XmlTransient
public final static String RESERVATIONID = "reservationId";
@XmlTransient
public final static String REQUESTEDAMOUNT = "requestedAmount";
@XmlTransient
public final static String REJECTREASON = "rejectReason";
@XmlTransient
public final static String STATUS = "status";
@XmlTransient
public final static String NOTES = "notes";
@XmlTransient
public final static String SAMECLAIM = "sameClaim";
@XmlTransient
public final static String SAMEAMOUNT = "sameAmount";
@XmlTransient
public final static String HASFUNDS = "hasFunds";
@XmlTransient
public final static String LOOP = "loop";
@XmlTransient
public final static String REJECTED = "rejected";
public NMC() {
ValidationUtils.setDefaults(this);
}
/**
* Gets the value of the id property.
*
*/
@Id
@Column(name = "ID", scale = 0)
@GeneratedValue(strategy = GenerationType.AUTO)
@Range(maxInclusive = "9223372036854775807", minInclusive = "-9223372036854775808")
public long getId() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return id;
}
/**
* Sets the value of the id property.
*
*/
public void setId(long value) {
getMetadata().removeUnknown("id");
if (m_validationSession!= null) {
m_validationSession.set(this, "id", value, id);
}
this.id = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "id", value, id);
}
}
/**
* Gets the value of the version property.
*
*/
@Version
@Column(name = "VERSION_", scale = 0)
@Range(maxInclusive = "9223372036854775807", minInclusive = "-9223372036854775808")
public long getVersion() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return version;
}
/**
* Sets the value of the version property.
*
*/
public void setVersion(long value) {
getMetadata().removeUnknown("version");
if (m_validationSession!= null) {
m_validationSession.set(this, "version", value, version);
}
this.version = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "version", value, version);
}
}
/**
* Gets the value of the claimId property.
*
* @return
* possible object is
* {@link String }
*
*/
@Label(labelName = "claimId")
@Basic
@Column(name = "CLAIMID", length = 10)
@Length(minLength = "0", maxLength = "10")
public String getClaimId() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return claimId;
}
/**
* Sets the value of the claimId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setClaimId(String value) {
getMetadata().removeUnknown("claimId");
if (m_validationSession!= null) {
m_validationSession.set(this, "claimId", value, claimId);
}
this.claimId = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "claimId", value, claimId);
}
}
/**
* Gets the value of the memberId property.
*
* @return
* possible object is
* {@link String }
*
*/
@Label(labelName = "memberId")
@Basic
@Column(name = "MEMBERID", length = 10)
@Length(minLength = "0", maxLength = "10")
public String getMemberId() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return memberId;
}
/**
* Sets the value of the memberId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMemberId(String value) {
getMetadata().removeUnknown("memberId");
if (m_validationSession!= null) {
m_validationSession.set(this, "memberId", value, memberId);
}
this.memberId = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "memberId", value, memberId);
}
}
/**
* Gets the value of the memberType property.
*
* @return
* possible object is
* {@link MemberType }
*
*/
@Label(labelName = "memberType")
@Basic
@Column(name = "MEMBERTYPE", length = 255)
@Enumerated(EnumType.STRING)
public MemberType getMemberType() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return memberType;
}
/**
* Sets the value of the memberType property.
*
* @param value
* allowed object is
* {@link MemberType }
*
*/
public void setMemberType(MemberType value) {
getMetadata().removeUnknown("memberType");
if (m_validationSession!= null) {
m_validationSession.set(this, "memberType", value, memberType);
}
this.memberType = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "memberType", value, memberType);
}
}
/**
* Gets the value of the reservationId property.
*
* @return
* possible object is
* {@link String }
*
*/
@Label(labelName = "reservationId")
@ReadOnly
@Basic
@Column(name = "RESERVATIONID", length = 10)
@Length(minLength = "0", maxLength = "10")
public String getReservationId() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return reservationId;
}
/**
* Sets the value of the reservationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReservationId(String value) {
getMetadata().removeUnknown("reservationId");
if (m_validationSession!= null) {
m_validationSession.set(this, "reservationId", value, reservationId);
}
this.reservationId = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "reservationId", value, reservationId);
}
}
/**
* Gets the value of the requestedAmount property.
*
*/
@Label(labelName = "requestedAmount")
@Digits(integerDigits = "8", fractionalDigits = "2")
@Basic
@Column(name = "REQUESTEDAMOUNT", precision = 20, scale = 10)
public float getRequestedAmount() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return requestedAmount;
}
/**
* Sets the value of the requestedAmount property.
*
*/
public void setRequestedAmount(float value) {
getMetadata().removeUnknown("requestedAmount");
if (m_validationSession!= null) {
m_validationSession.set(this, "requestedAmount", value, requestedAmount);
}
this.requestedAmount = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "requestedAmount", value, requestedAmount);
}
}
/**
* Gets the value of the rejectReason property.
*
* @return
* possible object is
* {@link String }
*
*/
@Label(labelName = "rejectReason")
@ReadOnly
@Basic
@Column(name = "REJECTREASON", length = 50)
@Length(minLength = "0", maxLength = "50")
public String getRejectReason() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return rejectReason;
}
/**
* Sets the value of the rejectReason property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRejectReason(String value) {
getMetadata().removeUnknown("rejectReason");
if (m_validationSession!= null) {
m_validationSession.set(this, "rejectReason", value, rejectReason);
}
this.rejectReason = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "rejectReason", value, rejectReason);
}
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link String }
*
*/
@Label(labelName = "status")
@ReadOnly
@Basic
@Column(name = "STATUS", length = 50)
@Length(minLength = "0", maxLength = "50")
public String getStatus() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStatus(String value) {
getMetadata().removeUnknown("status");
if (m_validationSession!= null) {
m_validationSession.set(this, "status", value, status);
}
this.status = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "status", value, status);
}
}
/**
* Gets the value of the notes property.
*
* @return
* possible object is
* {@link String }
*
*/
@Label(labelName = "notes")
@Basic
@Column(name = "NOTES", length = 200)
@Length(minLength = "0", maxLength = "200")
public String getNotes() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return notes;
}
/**
* Sets the value of the notes property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNotes(String value) {
getMetadata().removeUnknown("notes");
if (m_validationSession!= null) {
m_validationSession.set(this, "notes", value, notes);
}
this.notes = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "notes", value, notes);
}
}
/**
* Gets the value of the sameClaim property.
*
*/
@Label(labelName = "sameClaim")
@Basic
@Column(name = "SAMECLAIM")
public boolean isSameClaim() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return sameClaim;
}
/**
* Sets the value of the sameClaim property.
*
*/
public void setSameClaim(boolean value) {
getMetadata().removeUnknown("sameClaim");
if (m_validationSession!= null) {
m_validationSession.set(this, "sameClaim", value, sameClaim);
}
this.sameClaim = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "sameClaim", value, sameClaim);
}
}
/**
* Gets the value of the sameAmount property.
*
*/
@Label(labelName = "sameAmount")
@Basic
@Column(name = "SAMEAMOUNT")
public boolean isSameAmount() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return sameAmount;
}
/**
* Sets the value of the sameAmount property.
*
*/
public void setSameAmount(boolean value) {
getMetadata().removeUnknown("sameAmount");
if (m_validationSession!= null) {
m_validationSession.set(this, "sameAmount", value, sameAmount);
}
this.sameAmount = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "sameAmount", value, sameAmount);
}
}
/**
* Gets the value of the hasFunds property.
*
*/
@ReadOnly
@Transient
public boolean isHasFunds() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return hasFunds;
}
/**
* Sets the value of the hasFunds property.
*
*/
public void setHasFunds(boolean value) {
getMetadata().removeUnknown("hasFunds");
if (m_validationSession!= null) {
m_validationSession.set(this, "hasFunds", value, hasFunds);
}
this.hasFunds = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "hasFunds", value, hasFunds);
}
}
/**
* Gets the value of the loop property.
*
*/
@ReadOnly
@Transient
public boolean isLoop() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return loop;
}
/**
* Sets the value of the loop property.
*
*/
public void setLoop(boolean value) {
getMetadata().removeUnknown("loop");
if (m_validationSession!= null) {
m_validationSession.set(this, "loop", value, loop);
}
this.loop = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "loop", value, loop);
}
}
/**
* Gets the value of the rejected property.
*
*/
@ReadOnly
@Transient
public boolean isRejected() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return rejected;
}
/**
* Sets the value of the rejected property.
*
*/
public void setRejected(boolean value) {
getMetadata().removeUnknown("rejected");
if (m_validationSession!= null) {
m_validationSession.set(this, "rejected", value, rejected);
}
this.rejected = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "rejected", value, rejected);
}
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof NMC)) {
return false;
}
if (this == object) {
return true;
}
final NMC that = ((NMC) object);
{
long lhsId;
lhsId = (true?this.getId(): 0L);
long rhsId;
rhsId = (true?that.getId(): 0L);
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) {
return false;
}
}
{
long lhsVersion;
lhsVersion = (true?this.getVersion(): 0L);
long rhsVersion;
rhsVersion = (true?that.getVersion(): 0L);
if (!strategy.equals(LocatorUtils.property(thisLocator, "version", lhsVersion), LocatorUtils.property(thatLocator, "version", rhsVersion), lhsVersion, rhsVersion)) {
return false;
}
}
{
String lhsClaimId;
lhsClaimId = this.getClaimId();
String rhsClaimId;
rhsClaimId = that.getClaimId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "claimId", lhsClaimId), LocatorUtils.property(thatLocator, "claimId", rhsClaimId), lhsClaimId, rhsClaimId)) {
return false;
}
}
{
String lhsMemberId;
lhsMemberId = this.getMemberId();
String rhsMemberId;
rhsMemberId = that.getMemberId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "memberId", lhsMemberId), LocatorUtils.property(thatLocator, "memberId", rhsMemberId), lhsMemberId, rhsMemberId)) {
return false;
}
}
{
MemberType lhsMemberType;
lhsMemberType = this.getMemberType();
MemberType rhsMemberType;
rhsMemberType = that.getMemberType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "memberType", lhsMemberType), LocatorUtils.property(thatLocator, "memberType", rhsMemberType), lhsMemberType, rhsMemberType)) {
return false;
}
}
{
String lhsReservationId;
lhsReservationId = this.getReservationId();
String rhsReservationId;
rhsReservationId = that.getReservationId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "reservationId", lhsReservationId), LocatorUtils.property(thatLocator, "reservationId", rhsReservationId), lhsReservationId, rhsReservationId)) {
return false;
}
}
{
float lhsRequestedAmount;
lhsRequestedAmount = (true?this.getRequestedAmount(): 0.0F);
float rhsRequestedAmount;
rhsRequestedAmount = (true?that.getRequestedAmount(): 0.0F);
if (!strategy.equals(LocatorUtils.property(thisLocator, "requestedAmount", lhsRequestedAmount), LocatorUtils.property(thatLocator, "requestedAmount", rhsRequestedAmount), lhsRequestedAmount, rhsRequestedAmount)) {
return false;
}
}
{
String lhsRejectReason;
lhsRejectReason = this.getRejectReason();
String rhsRejectReason;
rhsRejectReason = that.getRejectReason();
if (!strategy.equals(LocatorUtils.property(thisLocator, "rejectReason", lhsRejectReason), LocatorUtils.property(thatLocator, "rejectReason", rhsRejectReason), lhsRejectReason, rhsRejectReason)) {
return false;
}
}
{
String lhsStatus;
lhsStatus = this.getStatus();
String rhsStatus;
rhsStatus = that.getStatus();
if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus)) {
return false;
}
}
{
String lhsNotes;
lhsNotes = this.getNotes();
String rhsNotes;
rhsNotes = that.getNotes();
if (!strategy.equals(LocatorUtils.property(thisLocator, "notes", lhsNotes), LocatorUtils.property(thatLocator, "notes", rhsNotes), lhsNotes, rhsNotes)) {
return false;
}
}
{
boolean lhsSameClaim;
lhsSameClaim = (true?this.isSameClaim():false);
boolean rhsSameClaim;
rhsSameClaim = (true?that.isSameClaim():false);
if (!strategy.equals(LocatorUtils.property(thisLocator, "sameClaim", lhsSameClaim), LocatorUtils.property(thatLocator, "sameClaim", rhsSameClaim), lhsSameClaim, rhsSameClaim)) {
return false;
}
}
{
boolean lhsSameAmount;
lhsSameAmount = (true?this.isSameAmount():false);
boolean rhsSameAmount;
rhsSameAmount = (true?that.isSameAmount():false);
if (!strategy.equals(LocatorUtils.property(thisLocator, "sameAmount", lhsSameAmount), LocatorUtils.property(thatLocator, "sameAmount", rhsSameAmount), lhsSameAmount, rhsSameAmount)) {
return false;
}
}
{
boolean lhsHasFunds;
lhsHasFunds = (true?this.isHasFunds():false);
boolean rhsHasFunds;
rhsHasFunds = (true?that.isHasFunds():false);
if (!strategy.equals(LocatorUtils.property(thisLocator, "hasFunds", lhsHasFunds), LocatorUtils.property(thatLocator, "hasFunds", rhsHasFunds), lhsHasFunds, rhsHasFunds)) {
return false;
}
}
{
boolean lhsLoop;
lhsLoop = (true?this.isLoop():false);
boolean rhsLoop;
rhsLoop = (true?that.isLoop():false);
if (!strategy.equals(LocatorUtils.property(thisLocator, "loop", lhsLoop), LocatorUtils.property(thatLocator, "loop", rhsLoop), lhsLoop, rhsLoop)) {
return false;
}
}
{
boolean lhsRejected;
lhsRejected = (true?this.isRejected():false);
boolean rhsRejected;
rhsRejected = (true?that.isRejected():false);
if (!strategy.equals(LocatorUtils.property(thisLocator, "rejected", lhsRejected), LocatorUtils.property(thatLocator, "rejected", rhsRejected), lhsRejected, rhsRejected)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
long theId;
theId = (true?this.getId(): 0L);
strategy.appendField(locator, this, "id", buffer, theId);
}
{
long theVersion;
theVersion = (true?this.getVersion(): 0L);
strategy.appendField(locator, this, "version", buffer, theVersion);
}
{
String theClaimId;
theClaimId = this.getClaimId();
strategy.appendField(locator, this, "claimId", buffer, theClaimId);
}
{
String theMemberId;
theMemberId = this.getMemberId();
strategy.appendField(locator, this, "memberId", buffer, theMemberId);
}
{
MemberType theMemberType;
theMemberType = this.getMemberType();
strategy.appendField(locator, this, "memberType", buffer, theMemberType);
}
{
String theReservationId;
theReservationId = this.getReservationId();
strategy.appendField(locator, this, "reservationId", buffer, theReservationId);
}
{
float theRequestedAmount;
theRequestedAmount = (true?this.getRequestedAmount(): 0.0F);
strategy.appendField(locator, this, "requestedAmount", buffer, theRequestedAmount);
}
{
String theRejectReason;
theRejectReason = this.getRejectReason();
strategy.appendField(locator, this, "rejectReason", buffer, theRejectReason);
}
{
String theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus);
}
{
String theNotes;
theNotes = this.getNotes();
strategy.appendField(locator, this, "notes", buffer, theNotes);
}
{
boolean theSameClaim;
theSameClaim = (true?this.isSameClaim():false);
strategy.appendField(locator, this, "sameClaim", buffer, theSameClaim);
}
{
boolean theSameAmount;
theSameAmount = (true?this.isSameAmount():false);
strategy.appendField(locator, this, "sameAmount", buffer, theSameAmount);
}
{
boolean theHasFunds;
theHasFunds = (true?this.isHasFunds():false);
strategy.appendField(locator, this, "hasFunds", buffer, theHasFunds);
}
{
boolean theLoop;
theLoop = (true?this.isLoop():false);
strategy.appendField(locator, this, "loop", buffer, theLoop);
}
{
boolean theRejected;
theRejected = (true?this.isRejected():false);
strategy.appendField(locator, this, "rejected", buffer, theRejected);
}
return buffer;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
long theId;
theId = (true?this.getId(): 0L);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
}
{
long theVersion;
theVersion = (true?this.getVersion(): 0L);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version", theVersion), currentHashCode, theVersion);
}
{
String theClaimId;
theClaimId = this.getClaimId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "claimId", theClaimId), currentHashCode, theClaimId);
}
{
String theMemberId;
theMemberId = this.getMemberId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "memberId", theMemberId), currentHashCode, theMemberId);
}
{
MemberType theMemberType;
theMemberType = this.getMemberType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "memberType", theMemberType), currentHashCode, theMemberType);
}
{
String theReservationId;
theReservationId = this.getReservationId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reservationId", theReservationId), currentHashCode, theReservationId);
}
{
float theRequestedAmount;
theRequestedAmount = (true?this.getRequestedAmount(): 0.0F);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "requestedAmount", theRequestedAmount), currentHashCode, theRequestedAmount);
}
{
String theRejectReason;
theRejectReason = this.getRejectReason();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rejectReason", theRejectReason), currentHashCode, theRejectReason);
}
{
String theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus);
}
{
String theNotes;
theNotes = this.getNotes();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "notes", theNotes), currentHashCode, theNotes);
}
{
boolean theSameClaim;
theSameClaim = (true?this.isSameClaim():false);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sameClaim", theSameClaim), currentHashCode, theSameClaim);
}
{
boolean theSameAmount;
theSameAmount = (true?this.isSameAmount():false);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sameAmount", theSameAmount), currentHashCode, theSameAmount);
}
{
boolean theHasFunds;
theHasFunds = (true?this.isHasFunds():false);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "hasFunds", theHasFunds), currentHashCode, theHasFunds);
}
{
boolean theLoop;
theLoop = (true?this.isLoop():false);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "loop", theLoop), currentHashCode, theLoop);
}
{
boolean theRejected;
theRejected = (true?this.isRejected():false);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rejected", theRejected), currentHashCode, theRejected);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
@Transient
public ObjectMetadata getMetadata() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
if (m_metadata == null) {
m_metadata = new ObjectMetadata();
}
return m_metadata;
}
@XmlTransient
public void setValidationSession(ValidationSession validationSession) {
m_validationSession = validationSession;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy