All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nz.co.senanque.base.Customer 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: 2018.04.01 at 06:43:06 AM UTC 
//


package nz.co.senanque.base;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import nz.co.senanque.validationengine.ListeningArray;
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.ChoiceList;
import nz.co.senanque.validationengine.annotations.Description;
import nz.co.senanque.validationengine.annotations.Digits;
import nz.co.senanque.validationengine.annotations.Inactive;
import nz.co.senanque.validationengine.annotations.Label;
import nz.co.senanque.validationengine.annotations.Length;
import nz.co.senanque.validationengine.annotations.MapField;
import nz.co.senanque.validationengine.annotations.Range;
import nz.co.senanque.validationengine.annotations.Regex;
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 Customer complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="Customer">
 *   <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="business" type="{http://www.example.org/sandbox}IndustryType"/>
 *         <element name="businessx" type="{http://www.example.org/sandbox}IndustryType"/>
 *         <element name="businessy" type="{http://www.example.org/sandbox}IndustryType"/>
 *         <element name="key">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="5"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="name">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="30"/>
 *               <pattern value="a*b"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="customerType">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="30"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="amount">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}double">
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="amountOne">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}double">
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="amountTwo">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}double">
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="amountThree">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}double">
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="invoiceCount" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         <element name="minInvoiceCount" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         <element name="amountstr">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <maxLength value="30"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="address" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="alltrue" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         <element name="anytrue" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         <element name="testBoolean" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         <element name="count" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         <element name="oneInvoice" type="{http://www.example.org/sandbox}Invoice" minOccurs="0"/>
 *         <element name="invoices" type="{http://www.example.org/sandbox}Invoice" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Customer", propOrder = { "id", "version", "business", "businessx", "businessy", "key", "name", "customerType", "amount", "amountOne", "amountTwo", "amountThree", "invoiceCount", "minInvoiceCount", "amountstr", "address", "alltrue", "anytrue", "testBoolean", "count", "oneInvoice", "invoices" }) @XmlSeeAlso({ BusinessCustomer.class }) @Entity(name = "Customer") @Table(name = "CUSTOMER") @Inheritance(strategy = InheritanceType.JOINED) public class Customer implements Serializable, ValidationObject, Equals, HashCode, ToString { protected long id; protected long version; @XmlElement(required = true) protected IndustryType business; @XmlElement(required = true) protected IndustryType businessx; @XmlElement(required = true, defaultValue = "fish") protected IndustryType businessy; @XmlElement(required = true) protected String key; @XmlElement(required = true) protected String name; @XmlElement(required = true) protected String customerType; protected double amount; protected double amountOne; protected double amountTwo; protected double amountThree; protected long invoiceCount; protected long minInvoiceCount; @XmlElement(required = true) protected String amountstr; @XmlElement(required = true) protected String address; protected boolean alltrue; protected boolean anytrue; protected boolean testBoolean; protected long count; protected Invoice oneInvoice; protected List invoices; @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 BUSINESS = "business"; @XmlTransient public final static String BUSINESSX = "businessx"; @XmlTransient public final static String BUSINESSY = "businessy"; @XmlTransient public final static String KEY = "key"; @XmlTransient public final static String NAME = "name"; @XmlTransient public final static String CUSTOMERTYPE = "customerType"; @XmlTransient public final static String AMOUNT = "amount"; @XmlTransient public final static String AMOUNTONE = "amountOne"; @XmlTransient public final static String AMOUNTTWO = "amountTwo"; @XmlTransient public final static String AMOUNTTHREE = "amountThree"; @XmlTransient public final static String INVOICECOUNT = "invoiceCount"; @XmlTransient public final static String MININVOICECOUNT = "minInvoiceCount"; @XmlTransient public final static String AMOUNTSTR = "amountstr"; @XmlTransient public final static String ADDRESS = "address"; @XmlTransient public final static String ALLTRUE = "alltrue"; @XmlTransient public final static String ANYTRUE = "anytrue"; @XmlTransient public final static String TESTBOOLEAN = "testBoolean"; @XmlTransient public final static String COUNT = "count"; @XmlTransient public final static String ONEINVOICE = "oneInvoice"; @XmlTransient public final static String INVOICES = "invoices"; public Customer() { ValidationUtils.setDefaults(this); } /** * Gets the value of the id property. * */ @Id @Column(name = "ID", scale = 0) @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 business property. * * @return * possible object is * {@link IndustryType } * */ @Basic @Column(name = "BUSINESS", length = 255) @Enumerated(EnumType.STRING) public IndustryType getBusiness() { if (m_validationSession!= null) { m_validationSession.clean(this); } return business; } /** * Sets the value of the business property. * * @param value * allowed object is * {@link IndustryType } * */ public void setBusiness(IndustryType value) { getMetadata().removeUnknown("business"); if (m_validationSession!= null) { m_validationSession.set(this, "business", value, business); } this.business = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "business", value, business); } } /** * Gets the value of the businessx property. * * @return * possible object is * {@link IndustryType } * */ @Basic @Column(name = "BUSINESSX", length = 255) @Enumerated(EnumType.STRING) public IndustryType getBusinessx() { if (m_validationSession!= null) { m_validationSession.clean(this); } return businessx; } /** * Sets the value of the businessx property. * * @param value * allowed object is * {@link IndustryType } * */ public void setBusinessx(IndustryType value) { getMetadata().removeUnknown("businessx"); if (m_validationSession!= null) { m_validationSession.set(this, "businessx", value, businessx); } this.businessx = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "businessx", value, businessx); } } /** * Gets the value of the businessy property. * * @return * possible object is * {@link IndustryType } * */ @Basic @Column(name = "BUSINESSY", length = 255) @Enumerated(EnumType.STRING) public IndustryType getBusinessy() { if (m_validationSession!= null) { m_validationSession.clean(this); } return businessy; } /** * Sets the value of the businessy property. * * @param value * allowed object is * {@link IndustryType } * */ public void setBusinessy(IndustryType value) { getMetadata().removeUnknown("businessy"); if (m_validationSession!= null) { m_validationSession.set(this, "businessy", value, businessy); } this.businessy = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "businessy", value, businessy); } } /** * Gets the value of the key property. * * @return * possible object is * {@link String } * */ @Label(labelName = "key") @Range(maxInclusive = "100") @Basic @Column(name = "KEY_", length = 5) @Length(minLength = "0", maxLength = "5") public String getKey() { if (m_validationSession!= null) { m_validationSession.clean(this); } return key; } /** * Sets the value of the key property. * * @param value * allowed object is * {@link String } * */ public void setKey(String value) { getMetadata().removeUnknown("key"); if (m_validationSession!= null) { m_validationSession.set(this, "key", value, key); } this.key = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "key", value, key); } } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ @Label(labelName = "xxx") @Description(name = "this is a description") @MapField(name = "whatever") @Basic @Column(name = "NAME_", length = 30) @Regex(pattern = "a*b") @Length(minLength = "0", maxLength = "30") public String getName() { if (m_validationSession!= null) { m_validationSession.clean(this); } return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { getMetadata().removeUnknown("name"); if (m_validationSession!= null) { m_validationSession.set(this, "name", value, name); } this.name = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "name", value, name); } } /** * Gets the value of the customerType property. * * @return * possible object is * {@link String } * */ @Label(labelName = "Customer Type") @Inactive @ChoiceList(name = "customerType") @Basic @Column(name = "CUSTOMERTYPE", length = 30) @Length(minLength = "0", maxLength = "30") public String getCustomerType() { if (m_validationSession!= null) { m_validationSession.clean(this); } return customerType; } /** * Sets the value of the customerType property. * * @param value * allowed object is * {@link String } * */ public void setCustomerType(String value) { getMetadata().removeUnknown("customerType"); if (m_validationSession!= null) { m_validationSession.set(this, "customerType", value, customerType); } this.customerType = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "customerType", value, customerType); } } /** * Gets the value of the amount property. * */ @Label(labelName = "Amount") @Digits(integerDigits = "8", fractionalDigits = "2") @Basic @Column(name = "AMOUNT") public double getAmount() { if (m_validationSession!= null) { m_validationSession.clean(this); } return amount; } /** * Sets the value of the amount property. * */ public void setAmount(double value) { getMetadata().removeUnknown("amount"); if (m_validationSession!= null) { m_validationSession.set(this, "amount", value, amount); } this.amount = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "amount", value, amount); } } /** * Gets the value of the amountOne property. * */ @Label(labelName = "Amount") @Digits(integerDigits = "8", fractionalDigits = "2") @Range(maxInclusive = "1000", minInclusive = "100") @Basic @Column(name = "AMOUNTONE") public double getAmountOne() { if (m_validationSession!= null) { m_validationSession.clean(this); } return amountOne; } /** * Sets the value of the amountOne property. * */ public void setAmountOne(double value) { getMetadata().removeUnknown("amountOne"); if (m_validationSession!= null) { m_validationSession.set(this, "amountOne", value, amountOne); } this.amountOne = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "amountOne", value, amountOne); } } /** * Gets the value of the amountTwo property. * */ @Label(labelName = "AmountTwo") @Digits(integerDigits = "8", fractionalDigits = "2") @Range(maxInclusive = "1000", minInclusive = "100") @Basic @Column(name = "AMOUNTTWO") public double getAmountTwo() { if (m_validationSession!= null) { m_validationSession.clean(this); } return amountTwo; } /** * Sets the value of the amountTwo property. * */ public void setAmountTwo(double value) { getMetadata().removeUnknown("amountTwo"); if (m_validationSession!= null) { m_validationSession.set(this, "amountTwo", value, amountTwo); } this.amountTwo = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "amountTwo", value, amountTwo); } } /** * Gets the value of the amountThree property. * */ @Label(labelName = "AmountThree") @Digits(integerDigits = "8", fractionalDigits = "2") @Range(maxInclusive = "1000", minInclusive = "100") @Basic @Column(name = "AMOUNTTHREE") public double getAmountThree() { if (m_validationSession!= null) { m_validationSession.clean(this); } return amountThree; } /** * Sets the value of the amountThree property. * */ public void setAmountThree(double value) { getMetadata().removeUnknown("amountThree"); if (m_validationSession!= null) { m_validationSession.set(this, "amountThree", value, amountThree); } this.amountThree = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "amountThree", value, amountThree); } } /** * Gets the value of the invoiceCount property. * */ @Label(labelName = "count") @Basic @Column(name = "INVOICECOUNT", precision = 20, scale = 0) @Range(maxInclusive = "9223372036854775807", minInclusive = "-9223372036854775808") public long getInvoiceCount() { if (m_validationSession!= null) { m_validationSession.clean(this); } return invoiceCount; } /** * Sets the value of the invoiceCount property. * */ public void setInvoiceCount(long value) { getMetadata().removeUnknown("invoiceCount"); if (m_validationSession!= null) { m_validationSession.set(this, "invoiceCount", value, invoiceCount); } this.invoiceCount = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "invoiceCount", value, invoiceCount); } } /** * Gets the value of the minInvoiceCount property. * */ @Label(labelName = "minInvoiceCount") @Basic @Column(name = "MININVOICECOUNT", precision = 20, scale = 0) @Range(maxInclusive = "9223372036854775807", minInclusive = "-9223372036854775808") public long getMinInvoiceCount() { if (m_validationSession!= null) { m_validationSession.clean(this); } return minInvoiceCount; } /** * Sets the value of the minInvoiceCount property. * */ public void setMinInvoiceCount(long value) { getMetadata().removeUnknown("minInvoiceCount"); if (m_validationSession!= null) { m_validationSession.set(this, "minInvoiceCount", value, minInvoiceCount); } this.minInvoiceCount = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "minInvoiceCount", value, minInvoiceCount); } } /** * Gets the value of the amountstr property. * * @return * possible object is * {@link String } * */ @Label(labelName = "Amount") @Digits(integerDigits = "8", fractionalDigits = "2") @Range(maxInclusive = "1000", minInclusive = "100") @Basic @Column(name = "AMOUNTSTR", length = 30) @Length(minLength = "0", maxLength = "30") public String getAmountstr() { if (m_validationSession!= null) { m_validationSession.clean(this); } return amountstr; } /** * Sets the value of the amountstr property. * * @param value * allowed object is * {@link String } * */ public void setAmountstr(String value) { getMetadata().removeUnknown("amountstr"); if (m_validationSession!= null) { m_validationSession.set(this, "amountstr", value, amountstr); } this.amountstr = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "amountstr", value, amountstr); } } /** * Gets the value of the address property. * * @return * possible object is * {@link String } * */ @Label(labelName = "xxx") @Basic @Column(name = "ADDRESS", length = 255) public String getAddress() { if (m_validationSession!= null) { m_validationSession.clean(this); } return address; } /** * Sets the value of the address property. * * @param value * allowed object is * {@link String } * */ public void setAddress(String value) { getMetadata().removeUnknown("address"); if (m_validationSession!= null) { m_validationSession.set(this, "address", value, address); } this.address = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "address", value, address); } } /** * Gets the value of the alltrue property. * */ @Label(labelName = "allTrue") @Basic @Column(name = "ALLTRUE") public boolean isAlltrue() { if (m_validationSession!= null) { m_validationSession.clean(this); } return alltrue; } /** * Sets the value of the alltrue property. * */ public void setAlltrue(boolean value) { getMetadata().removeUnknown("alltrue"); if (m_validationSession!= null) { m_validationSession.set(this, "alltrue", value, alltrue); } this.alltrue = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "alltrue", value, alltrue); } } /** * Gets the value of the anytrue property. * */ @Label(labelName = "anyTrue") @Basic @Column(name = "ANYTRUE") public boolean isAnytrue() { if (m_validationSession!= null) { m_validationSession.clean(this); } return anytrue; } /** * Sets the value of the anytrue property. * */ public void setAnytrue(boolean value) { getMetadata().removeUnknown("anytrue"); if (m_validationSession!= null) { m_validationSession.set(this, "anytrue", value, anytrue); } this.anytrue = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "anytrue", value, anytrue); } } /** * Gets the value of the testBoolean property. * */ @Label(labelName = "testBoolean") @Basic @Column(name = "TESTBOOLEAN") public boolean isTestBoolean() { if (m_validationSession!= null) { m_validationSession.clean(this); } return testBoolean; } /** * Sets the value of the testBoolean property. * */ public void setTestBoolean(boolean value) { getMetadata().removeUnknown("testBoolean"); if (m_validationSession!= null) { m_validationSession.set(this, "testBoolean", value, testBoolean); } this.testBoolean = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "testBoolean", value, testBoolean); } } /** * Gets the value of the count property. * */ @Label(labelName = "countTrue") @Basic @Column(name = "COUNT_", precision = 20, scale = 0) @Range(maxInclusive = "9223372036854775807", minInclusive = "-9223372036854775808") public long getCount() { if (m_validationSession!= null) { m_validationSession.clean(this); } return count; } /** * Sets the value of the count property. * */ public void setCount(long value) { getMetadata().removeUnknown("count"); if (m_validationSession!= null) { m_validationSession.set(this, "count", value, count); } this.count = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "count", value, count); } } /** * Gets the value of the oneInvoice property. * * @return * possible object is * {@link Invoice } * */ @ManyToOne(targetEntity = Invoice.class, cascade = { CascadeType.ALL }) @JoinColumn(name = "ONEINVOICE_CUSTOMER_HJID") public Invoice getOneInvoice() { if (m_validationSession!= null) { m_validationSession.clean(this); } return oneInvoice; } /** * Sets the value of the oneInvoice property. * * @param value * allowed object is * {@link Invoice } * */ public void setOneInvoice(Invoice value) { getMetadata().removeUnknown("oneInvoice"); if (m_validationSession!= null) { m_validationSession.set(this, "oneInvoice", value, oneInvoice); } this.oneInvoice = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "oneInvoice", value, oneInvoice); } } /** * Gets the value of the invoices property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the invoices property. * *

* For example, to add a new item, do as follows: *

     *    getInvoices().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Invoice } * * */ @OneToMany(targetEntity = Invoice.class, cascade = { CascadeType.ALL }) @JoinColumn(name = "INVOICES_CUSTOMER_ID") public List getInvoices() { if (m_validationSession!= null) { m_validationSession.clean(this); } if (invoices == null) { invoices = new ListeningArray(); } if (invoices == null) { invoices = new ArrayList(); } return this.invoices; } /** * * */ public void setInvoices(List invoices) { getMetadata().removeUnknown("invoices"); if (m_validationSession!= null) { m_validationSession.set(this, "invoices", invoices, invoices); } this.invoices = invoices; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "invoices", invoices, invoices); } } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Customer)) { return false; } if (this == object) { return true; } final Customer that = ((Customer) 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; } } { IndustryType lhsBusiness; lhsBusiness = this.getBusiness(); IndustryType rhsBusiness; rhsBusiness = that.getBusiness(); if (!strategy.equals(LocatorUtils.property(thisLocator, "business", lhsBusiness), LocatorUtils.property(thatLocator, "business", rhsBusiness), lhsBusiness, rhsBusiness)) { return false; } } { IndustryType lhsBusinessx; lhsBusinessx = this.getBusinessx(); IndustryType rhsBusinessx; rhsBusinessx = that.getBusinessx(); if (!strategy.equals(LocatorUtils.property(thisLocator, "businessx", lhsBusinessx), LocatorUtils.property(thatLocator, "businessx", rhsBusinessx), lhsBusinessx, rhsBusinessx)) { return false; } } { IndustryType lhsBusinessy; lhsBusinessy = this.getBusinessy(); IndustryType rhsBusinessy; rhsBusinessy = that.getBusinessy(); if (!strategy.equals(LocatorUtils.property(thisLocator, "businessy", lhsBusinessy), LocatorUtils.property(thatLocator, "businessy", rhsBusinessy), lhsBusinessy, rhsBusinessy)) { return false; } } { String lhsKey; lhsKey = this.getKey(); String rhsKey; rhsKey = that.getKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "key", lhsKey), LocatorUtils.property(thatLocator, "key", rhsKey), lhsKey, rhsKey)) { return false; } } { String lhsName; lhsName = this.getName(); String rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) { return false; } } { String lhsCustomerType; lhsCustomerType = this.getCustomerType(); String rhsCustomerType; rhsCustomerType = that.getCustomerType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "customerType", lhsCustomerType), LocatorUtils.property(thatLocator, "customerType", rhsCustomerType), lhsCustomerType, rhsCustomerType)) { return false; } } { double lhsAmount; lhsAmount = (true?this.getAmount(): 0.0D); double rhsAmount; rhsAmount = (true?that.getAmount(): 0.0D); if (!strategy.equals(LocatorUtils.property(thisLocator, "amount", lhsAmount), LocatorUtils.property(thatLocator, "amount", rhsAmount), lhsAmount, rhsAmount)) { return false; } } { double lhsAmountOne; lhsAmountOne = (true?this.getAmountOne(): 0.0D); double rhsAmountOne; rhsAmountOne = (true?that.getAmountOne(): 0.0D); if (!strategy.equals(LocatorUtils.property(thisLocator, "amountOne", lhsAmountOne), LocatorUtils.property(thatLocator, "amountOne", rhsAmountOne), lhsAmountOne, rhsAmountOne)) { return false; } } { double lhsAmountTwo; lhsAmountTwo = (true?this.getAmountTwo(): 0.0D); double rhsAmountTwo; rhsAmountTwo = (true?that.getAmountTwo(): 0.0D); if (!strategy.equals(LocatorUtils.property(thisLocator, "amountTwo", lhsAmountTwo), LocatorUtils.property(thatLocator, "amountTwo", rhsAmountTwo), lhsAmountTwo, rhsAmountTwo)) { return false; } } { double lhsAmountThree; lhsAmountThree = (true?this.getAmountThree(): 0.0D); double rhsAmountThree; rhsAmountThree = (true?that.getAmountThree(): 0.0D); if (!strategy.equals(LocatorUtils.property(thisLocator, "amountThree", lhsAmountThree), LocatorUtils.property(thatLocator, "amountThree", rhsAmountThree), lhsAmountThree, rhsAmountThree)) { return false; } } { long lhsInvoiceCount; lhsInvoiceCount = (true?this.getInvoiceCount(): 0L); long rhsInvoiceCount; rhsInvoiceCount = (true?that.getInvoiceCount(): 0L); if (!strategy.equals(LocatorUtils.property(thisLocator, "invoiceCount", lhsInvoiceCount), LocatorUtils.property(thatLocator, "invoiceCount", rhsInvoiceCount), lhsInvoiceCount, rhsInvoiceCount)) { return false; } } { long lhsMinInvoiceCount; lhsMinInvoiceCount = (true?this.getMinInvoiceCount(): 0L); long rhsMinInvoiceCount; rhsMinInvoiceCount = (true?that.getMinInvoiceCount(): 0L); if (!strategy.equals(LocatorUtils.property(thisLocator, "minInvoiceCount", lhsMinInvoiceCount), LocatorUtils.property(thatLocator, "minInvoiceCount", rhsMinInvoiceCount), lhsMinInvoiceCount, rhsMinInvoiceCount)) { return false; } } { String lhsAmountstr; lhsAmountstr = this.getAmountstr(); String rhsAmountstr; rhsAmountstr = that.getAmountstr(); if (!strategy.equals(LocatorUtils.property(thisLocator, "amountstr", lhsAmountstr), LocatorUtils.property(thatLocator, "amountstr", rhsAmountstr), lhsAmountstr, rhsAmountstr)) { return false; } } { String lhsAddress; lhsAddress = this.getAddress(); String rhsAddress; rhsAddress = that.getAddress(); if (!strategy.equals(LocatorUtils.property(thisLocator, "address", lhsAddress), LocatorUtils.property(thatLocator, "address", rhsAddress), lhsAddress, rhsAddress)) { return false; } } { boolean lhsAlltrue; lhsAlltrue = (true?this.isAlltrue():false); boolean rhsAlltrue; rhsAlltrue = (true?that.isAlltrue():false); if (!strategy.equals(LocatorUtils.property(thisLocator, "alltrue", lhsAlltrue), LocatorUtils.property(thatLocator, "alltrue", rhsAlltrue), lhsAlltrue, rhsAlltrue)) { return false; } } { boolean lhsAnytrue; lhsAnytrue = (true?this.isAnytrue():false); boolean rhsAnytrue; rhsAnytrue = (true?that.isAnytrue():false); if (!strategy.equals(LocatorUtils.property(thisLocator, "anytrue", lhsAnytrue), LocatorUtils.property(thatLocator, "anytrue", rhsAnytrue), lhsAnytrue, rhsAnytrue)) { return false; } } { boolean lhsTestBoolean; lhsTestBoolean = (true?this.isTestBoolean():false); boolean rhsTestBoolean; rhsTestBoolean = (true?that.isTestBoolean():false); if (!strategy.equals(LocatorUtils.property(thisLocator, "testBoolean", lhsTestBoolean), LocatorUtils.property(thatLocator, "testBoolean", rhsTestBoolean), lhsTestBoolean, rhsTestBoolean)) { return false; } } { long lhsCount; lhsCount = (true?this.getCount(): 0L); long rhsCount; rhsCount = (true?that.getCount(): 0L); if (!strategy.equals(LocatorUtils.property(thisLocator, "count", lhsCount), LocatorUtils.property(thatLocator, "count", rhsCount), lhsCount, rhsCount)) { return false; } } { Invoice lhsOneInvoice; lhsOneInvoice = this.getOneInvoice(); Invoice rhsOneInvoice; rhsOneInvoice = that.getOneInvoice(); if (!strategy.equals(LocatorUtils.property(thisLocator, "oneInvoice", lhsOneInvoice), LocatorUtils.property(thatLocator, "oneInvoice", rhsOneInvoice), lhsOneInvoice, rhsOneInvoice)) { return false; } } { List lhsInvoices; lhsInvoices = (((this.invoices!= null)&&(!this.invoices.isEmpty()))?this.getInvoices():null); List rhsInvoices; rhsInvoices = (((that.invoices!= null)&&(!that.invoices.isEmpty()))?that.getInvoices():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "invoices", lhsInvoices), LocatorUtils.property(thatLocator, "invoices", rhsInvoices), lhsInvoices, rhsInvoices)) { 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); } { IndustryType theBusiness; theBusiness = this.getBusiness(); strategy.appendField(locator, this, "business", buffer, theBusiness); } { IndustryType theBusinessx; theBusinessx = this.getBusinessx(); strategy.appendField(locator, this, "businessx", buffer, theBusinessx); } { IndustryType theBusinessy; theBusinessy = this.getBusinessy(); strategy.appendField(locator, this, "businessy", buffer, theBusinessy); } { String theKey; theKey = this.getKey(); strategy.appendField(locator, this, "key", buffer, theKey); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName); } { String theCustomerType; theCustomerType = this.getCustomerType(); strategy.appendField(locator, this, "customerType", buffer, theCustomerType); } { double theAmount; theAmount = (true?this.getAmount(): 0.0D); strategy.appendField(locator, this, "amount", buffer, theAmount); } { double theAmountOne; theAmountOne = (true?this.getAmountOne(): 0.0D); strategy.appendField(locator, this, "amountOne", buffer, theAmountOne); } { double theAmountTwo; theAmountTwo = (true?this.getAmountTwo(): 0.0D); strategy.appendField(locator, this, "amountTwo", buffer, theAmountTwo); } { double theAmountThree; theAmountThree = (true?this.getAmountThree(): 0.0D); strategy.appendField(locator, this, "amountThree", buffer, theAmountThree); } { long theInvoiceCount; theInvoiceCount = (true?this.getInvoiceCount(): 0L); strategy.appendField(locator, this, "invoiceCount", buffer, theInvoiceCount); } { long theMinInvoiceCount; theMinInvoiceCount = (true?this.getMinInvoiceCount(): 0L); strategy.appendField(locator, this, "minInvoiceCount", buffer, theMinInvoiceCount); } { String theAmountstr; theAmountstr = this.getAmountstr(); strategy.appendField(locator, this, "amountstr", buffer, theAmountstr); } { String theAddress; theAddress = this.getAddress(); strategy.appendField(locator, this, "address", buffer, theAddress); } { boolean theAlltrue; theAlltrue = (true?this.isAlltrue():false); strategy.appendField(locator, this, "alltrue", buffer, theAlltrue); } { boolean theAnytrue; theAnytrue = (true?this.isAnytrue():false); strategy.appendField(locator, this, "anytrue", buffer, theAnytrue); } { boolean theTestBoolean; theTestBoolean = (true?this.isTestBoolean():false); strategy.appendField(locator, this, "testBoolean", buffer, theTestBoolean); } { long theCount; theCount = (true?this.getCount(): 0L); strategy.appendField(locator, this, "count", buffer, theCount); } { Invoice theOneInvoice; theOneInvoice = this.getOneInvoice(); strategy.appendField(locator, this, "oneInvoice", buffer, theOneInvoice); } { List theInvoices; theInvoices = (((this.invoices!= null)&&(!this.invoices.isEmpty()))?this.getInvoices():null); strategy.appendField(locator, this, "invoices", buffer, theInvoices); } 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); } { IndustryType theBusiness; theBusiness = this.getBusiness(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "business", theBusiness), currentHashCode, theBusiness); } { IndustryType theBusinessx; theBusinessx = this.getBusinessx(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "businessx", theBusinessx), currentHashCode, theBusinessx); } { IndustryType theBusinessy; theBusinessy = this.getBusinessy(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "businessy", theBusinessy), currentHashCode, theBusinessy); } { String theKey; theKey = this.getKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "key", theKey), currentHashCode, theKey); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName); } { String theCustomerType; theCustomerType = this.getCustomerType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "customerType", theCustomerType), currentHashCode, theCustomerType); } { double theAmount; theAmount = (true?this.getAmount(): 0.0D); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "amount", theAmount), currentHashCode, theAmount); } { double theAmountOne; theAmountOne = (true?this.getAmountOne(): 0.0D); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "amountOne", theAmountOne), currentHashCode, theAmountOne); } { double theAmountTwo; theAmountTwo = (true?this.getAmountTwo(): 0.0D); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "amountTwo", theAmountTwo), currentHashCode, theAmountTwo); } { double theAmountThree; theAmountThree = (true?this.getAmountThree(): 0.0D); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "amountThree", theAmountThree), currentHashCode, theAmountThree); } { long theInvoiceCount; theInvoiceCount = (true?this.getInvoiceCount(): 0L); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "invoiceCount", theInvoiceCount), currentHashCode, theInvoiceCount); } { long theMinInvoiceCount; theMinInvoiceCount = (true?this.getMinInvoiceCount(): 0L); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "minInvoiceCount", theMinInvoiceCount), currentHashCode, theMinInvoiceCount); } { String theAmountstr; theAmountstr = this.getAmountstr(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "amountstr", theAmountstr), currentHashCode, theAmountstr); } { String theAddress; theAddress = this.getAddress(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "address", theAddress), currentHashCode, theAddress); } { boolean theAlltrue; theAlltrue = (true?this.isAlltrue():false); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "alltrue", theAlltrue), currentHashCode, theAlltrue); } { boolean theAnytrue; theAnytrue = (true?this.isAnytrue():false); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "anytrue", theAnytrue), currentHashCode, theAnytrue); } { boolean theTestBoolean; theTestBoolean = (true?this.isTestBoolean():false); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "testBoolean", theTestBoolean), currentHashCode, theTestBoolean); } { long theCount; theCount = (true?this.getCount(): 0L); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "count", theCount), currentHashCode, theCount); } { Invoice theOneInvoice; theOneInvoice = this.getOneInvoice(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oneInvoice", theOneInvoice), currentHashCode, theOneInvoice); } { List theInvoices; theInvoices = (((this.invoices!= null)&&(!this.invoices.isEmpty()))?this.getInvoices():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "invoices", theInvoices), currentHashCode, theInvoices); } 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