diff options
Diffstat (limited to 'id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/config/PVP2.java')
-rw-r--r-- | id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/config/PVP2.java | 385 |
1 files changed, 0 insertions, 385 deletions
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/config/PVP2.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/config/PVP2.java deleted file mode 100644 index 2cd4bdd0d..000000000 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/config/PVP2.java +++ /dev/null @@ -1,385 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 -// 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: 2015.01.09 at 09:01:43 AM CET -// - - -package at.gv.egovernment.moa.id.commons.db.dao.config; - -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.GeneratedValue; -import javax.persistence.GenerationType; -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.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import com.sun.tools.xjc.runtime.ZeroOneBooleanAdapter; -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.locator.ObjectLocator; -import org.jvnet.jaxb2_commons.locator.util.LocatorUtils; - - -/** - * <p>Java class for anonymous complex type. - * - * <p>The following schema fragment specifies the expected content contained within this class. - * - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="PublicURLPrefix" type="{http://www.w3.org/2001/XMLSchema}anyURI"/> - * <element name="IssuerName" type="{http://www.w3.org/2001/XMLSchema}anyURI"/> - * <element name="Organization"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="DisplayName" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="URL" type="{http://www.w3.org/2001/XMLSchema}anyURI"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * <element ref="{http://www.buergerkarte.at/namespaces/moaconfig#}Contact" maxOccurs="unbounded"/> - * </sequence> - * <attribute name="isActive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "publicURLPrefix", - "issuerName", - "organization", - "contact" -}) -@Entity(name = "PVP2") -@Table(name = "PVP2") -@Inheritance(strategy = InheritanceType.JOINED) -public class PVP2 - implements Serializable, Equals, HashCode -{ - - @XmlElement(name = "PublicURLPrefix", required = true) - @XmlSchemaType(name = "anyURI") - protected String publicURLPrefix; - @XmlElement(name = "IssuerName", required = true) - @XmlSchemaType(name = "anyURI") - protected String issuerName; - @XmlElement(name = "Organization", required = true) - protected Organization organization; - @XmlElement(name = "Contact", required = true) - protected List<Contact> contact; - @XmlAttribute(name = "isActive") - @XmlJavaTypeAdapter(ZeroOneBooleanAdapter.class) - @XmlSchemaType(name = "boolean") - protected Boolean isActive; - @XmlAttribute(name = "Hjid") - protected Long hjid; - - /** - * Gets the value of the publicURLPrefix property. - * - * @return - * possible object is - * {@link String } - * - */ - @Basic - @Column(name = "PUBLICURLPREFIX") - public String getPublicURLPrefix() { - return publicURLPrefix; - } - - /** - * Sets the value of the publicURLPrefix property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPublicURLPrefix(String value) { - this.publicURLPrefix = value; - } - - /** - * Gets the value of the issuerName property. - * - * @return - * possible object is - * {@link String } - * - */ - @Basic - @Column(name = "ISSUERNAME") - public String getIssuerName() { - return issuerName; - } - - /** - * Sets the value of the issuerName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setIssuerName(String value) { - this.issuerName = value; - } - - /** - * Gets the value of the organization property. - * - * @return - * possible object is - * {@link Organization } - * - */ - @ManyToOne(targetEntity = Organization.class, cascade = { - CascadeType.ALL - }) - @JoinColumn(name = "ORGANIZATION_PVP2_HJID") - public Organization getOrganization() { - return organization; - } - - /** - * Sets the value of the organization property. - * - * @param value - * allowed object is - * {@link Organization } - * - */ - public void setOrganization(Organization value) { - this.organization = value; - } - - /** - * Gets the value of the contact property. - * - * <p> - * 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 <CODE>set</CODE> method for the contact property. - * - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getContact().add(newItem); - * </pre> - * - * - * <p> - * Objects of the following type(s) are allowed in the list - * {@link Contact } - * - * - */ - @OneToMany(targetEntity = Contact.class, cascade = { - CascadeType.ALL - }) - @JoinColumn(name = "CONTACT_PVP2_HJID") - public List<Contact> getContact() { - if (contact == null) { - contact = new ArrayList<Contact>(); - } - return this.contact; - } - - /** - * - * - */ - public void setContact(List<Contact> contact) { - this.contact = contact; - } - - /** - * Gets the value of the isActive property. - * - * @return - * possible object is - * {@link String } - * - */ - @Basic - @Column(name = "ISACTIVE") - public boolean isIsActive() { - if (isActive == null) { - return new ZeroOneBooleanAdapter().unmarshal("true"); - } else { - return isActive; - } - } - - /** - * Sets the value of the isActive property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setIsActive(Boolean value) { - this.isActive = value; - } - - /** - * Gets the value of the hjid property. - * - * @return - * possible object is - * {@link Long } - * - */ - @Id - @Column(name = "HJID") - @GeneratedValue(strategy = GenerationType.AUTO) - 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 boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { - if (!(object instanceof PVP2)) { - return false; - } - if (this == object) { - return true; - } - final PVP2 that = ((PVP2) object); - { - String lhsPublicURLPrefix; - lhsPublicURLPrefix = this.getPublicURLPrefix(); - String rhsPublicURLPrefix; - rhsPublicURLPrefix = that.getPublicURLPrefix(); - if (!strategy.equals(LocatorUtils.property(thisLocator, "publicURLPrefix", lhsPublicURLPrefix), LocatorUtils.property(thatLocator, "publicURLPrefix", rhsPublicURLPrefix), lhsPublicURLPrefix, rhsPublicURLPrefix)) { - return false; - } - } - { - String lhsIssuerName; - lhsIssuerName = this.getIssuerName(); - String rhsIssuerName; - rhsIssuerName = that.getIssuerName(); - if (!strategy.equals(LocatorUtils.property(thisLocator, "issuerName", lhsIssuerName), LocatorUtils.property(thatLocator, "issuerName", rhsIssuerName), lhsIssuerName, rhsIssuerName)) { - return false; - } - } - { - Organization lhsOrganization; - lhsOrganization = this.getOrganization(); - Organization rhsOrganization; - rhsOrganization = that.getOrganization(); - if (!strategy.equals(LocatorUtils.property(thisLocator, "organization", lhsOrganization), LocatorUtils.property(thatLocator, "organization", rhsOrganization), lhsOrganization, rhsOrganization)) { - return false; - } - } - { - List<Contact> lhsContact; - lhsContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null); - List<Contact> rhsContact; - rhsContact = (((that.contact!= null)&&(!that.contact.isEmpty()))?that.getContact():null); - if (!strategy.equals(LocatorUtils.property(thisLocator, "contact", lhsContact), LocatorUtils.property(thatLocator, "contact", rhsContact), lhsContact, rhsContact)) { - return false; - } - } - { - boolean lhsIsActive; - lhsIsActive = ((this.isActive!= null)?this.isIsActive():false); - boolean rhsIsActive; - rhsIsActive = ((that.isActive!= null)?that.isIsActive():false); - if (!strategy.equals(LocatorUtils.property(thisLocator, "isActive", lhsIsActive), LocatorUtils.property(thatLocator, "isActive", rhsIsActive), lhsIsActive, rhsIsActive)) { - return false; - } - } - return true; - } - - public boolean equals(Object object) { - final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; - return equals(null, null, object, strategy); - } - - public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { - int currentHashCode = 1; - { - String thePublicURLPrefix; - thePublicURLPrefix = this.getPublicURLPrefix(); - currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "publicURLPrefix", thePublicURLPrefix), currentHashCode, thePublicURLPrefix); - } - { - String theIssuerName; - theIssuerName = this.getIssuerName(); - currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "issuerName", theIssuerName), currentHashCode, theIssuerName); - } - { - Organization theOrganization; - theOrganization = this.getOrganization(); - currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "organization", theOrganization), currentHashCode, theOrganization); - } - { - List<Contact> theContact; - theContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null); - currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contact", theContact), currentHashCode, theContact); - } - { - boolean theIsActive; - theIsActive = ((this.isActive!= null)?this.isIsActive():false); - currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "isActive", theIsActive), currentHashCode, theIsActive); - } - return currentHashCode; - } - - public int hashCode() { - final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; - return this.hashCode(null, strategy); - } - -} |