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

nz.co.senanque.base.BusinessCustomer 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 javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
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.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import nz.co.senanque.validationengine.ValidationObject;
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 BusinessCustomer complex type. * *

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

 * <complexType name="BusinessCustomer">
 *   <complexContent>
 *     <extension base="{http://www.example.org/sandbox}Customer">
 *       <sequence>
 *         <element name="description1" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BusinessCustomer", propOrder = { "description1" }) @Entity(name = "BusinessCustomer") @Table(name = "BUSINESSCUSTOMER") public class BusinessCustomer extends Customer implements Serializable, ValidationObject, Equals, HashCode, ToString { @XmlElement(required = true) protected String description1; @XmlTransient public final static String DESCRIPTION1 = "description1"; /** * Gets the value of the description1 property. * * @return * possible object is * {@link String } * */ @Basic @Column(name = "DESCRIPTION1", length = 255) public String getDescription1() { if (m_validationSession!= null) { m_validationSession.clean(this); } return description1; } /** * Sets the value of the description1 property. * * @param value * allowed object is * {@link String } * */ public void setDescription1(String value) { getMetadata().removeUnknown("description1"); if (m_validationSession!= null) { m_validationSession.set(this, "description1", value, description1); } this.description1 = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "description1", value, description1); } } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof BusinessCustomer)) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final BusinessCustomer that = ((BusinessCustomer) object); { String lhsDescription1; lhsDescription1 = this.getDescription1(); String rhsDescription1; rhsDescription1 = that.getDescription1(); if (!strategy.equals(LocatorUtils.property(thisLocator, "description1", lhsDescription1), LocatorUtils.property(thatLocator, "description1", rhsDescription1), lhsDescription1, rhsDescription1)) { 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) { super.appendFields(locator, buffer, strategy); { String theDescription1; theDescription1 = this.getDescription1(); strategy.appendField(locator, this, "description1", buffer, theDescription1); } return buffer; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { String theDescription1; theDescription1 = this.getDescription1(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description1", theDescription1), currentHashCode, theDescription1); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy