// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.3-b01-fcs // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2007.11.21 at 09:30:17 AM CET // package org.jvnet.hyperjaxb3.ejb.tests.issues; 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.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlValue; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.jvnet.jaxb2_commons.lang.Equals; import org.jvnet.jaxb2_commons.lang.HashCode; import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder; import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder; /** *

Java class for SType complex type. * *

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

 * <complexType name="SType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SType", propOrder = { "content" }) @XmlSeeAlso({ StringSType.class }) @Entity(name = "org.jvnet.hyperjaxb3.ejb.tests.issues.SType") @Table(name = "STYPE") @Inheritance(strategy = InheritanceType.JOINED) public class SType implements Equals, HashCode { @XmlValue protected String content; @XmlAttribute protected String name; @XmlAttribute protected Long hjid; /** * Gets the value of the content property. * * @return * possible object is * {@link String } * */ @Basic @Column(name = "CONTENT") public String getContent() { return content; } /** * Sets the value of the content property. * * @param value * allowed object is * {@link String } * */ public void setContent(String value) { this.content = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ @Basic @Column(name = "NAME_") public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the hjid property. * * @return * possible object is * {@link Long } * */ @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "HJID") public Long getHjid() { return hjid; } /** * Sets the value of the hjid property. * * @param value * allowed object is * {@link Long } * */ public void setHjid(Long value) { this.hjid = value; } public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof SType)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final SType that = ((SType) object); equalsBuilder.append(this.getContent(), that.getContent()); equalsBuilder.append(this.getName(), that.getName()); } public boolean equals(Object object) { if (!(object instanceof SType)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); } public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getContent()); hashCodeBuilder.append(this.getName()); } public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); } }