aboutsummaryrefslogtreecommitdiff
path: root/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/config/deprecated/Contact.java
diff options
context:
space:
mode:
Diffstat (limited to 'id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/config/deprecated/Contact.java')
-rw-r--r--id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/config/deprecated/Contact.java484
1 files changed, 484 insertions, 0 deletions
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/config/deprecated/Contact.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/config/deprecated/Contact.java
new file mode 100644
index 000000000..38835db05
--- /dev/null
+++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/config/deprecated/Contact.java
@@ -0,0 +1,484 @@
+//
+// 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.07.20 at 12:19:30 PM CEST
+//
+
+
+package at.gv.egovernment.moa.id.commons.db.dao.config.deprecated;
+
+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.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.Transient;
+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.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import org.jvnet.hyperjaxb3.item.ItemUtils;
+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>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="SurName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * &lt;element name="GivenName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * &lt;element name="Mail" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
+ * &lt;element name="Type">
+ * &lt;simpleType>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ * &lt;enumeration value="technical"/>
+ * &lt;enumeration value="support"/>
+ * &lt;enumeration value="administrative"/>
+ * &lt;enumeration value="billing"/>
+ * &lt;enumeration value="other"/>
+ * &lt;/restriction>
+ * &lt;/simpleType>
+ * &lt;/element>
+ * &lt;element name="Company" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * &lt;element name="Phone" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "surName",
+ "givenName",
+ "mail",
+ "type",
+ "company",
+ "phone"
+})
+@XmlRootElement(name = "Contact")
+
+
+
+public class Contact
+ implements Serializable, Equals, HashCode
+{
+
+ @XmlElement(name = "SurName", required = true)
+ protected String surName;
+ @XmlElement(name = "GivenName", required = true)
+ protected String givenName;
+ @XmlElement(name = "Mail", required = true)
+ protected List<String> mail;
+ @XmlElement(name = "Type", required = true)
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ protected String type;
+ @XmlElement(name = "Company", required = true)
+ protected String company;
+ @XmlElement(name = "Phone", required = true)
+ protected List<String> phone;
+ @XmlAttribute(name = "Hjid")
+ protected Long hjid;
+ protected transient List<ContactMailItem> mailItems;
+ protected transient List<ContactPhoneItem> phoneItems;
+
+ /**
+ * Gets the value of the surName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+
+
+ public String getSurName() {
+ return surName;
+ }
+
+ /**
+ * Sets the value of the surName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSurName(String value) {
+ this.surName = value;
+ }
+
+ /**
+ * Gets the value of the givenName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+
+
+ public String getGivenName() {
+ return givenName;
+ }
+
+ /**
+ * Sets the value of the givenName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setGivenName(String value) {
+ this.givenName = value;
+ }
+
+ /**
+ * Gets the value of the mail 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 mail property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getMail().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ @Transient
+ public List<String> getMail() {
+ if (mail == null) {
+ mail = new ArrayList<String>();
+ }
+ return this.mail;
+ }
+
+ /**
+ *
+ *
+ */
+ public void setMail(List<String> mail) {
+ this.mail = mail;
+ }
+
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+
+
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setType(String value) {
+ this.type = value;
+ }
+
+ /**
+ * Gets the value of the company property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+
+
+ public String getCompany() {
+ return company;
+ }
+
+ /**
+ * Sets the value of the company property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setCompany(String value) {
+ this.company = value;
+ }
+
+ /**
+ * Gets the value of the phone 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 phone property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getPhone().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ @Transient
+ public List<String> getPhone() {
+ if (phone == null) {
+ phone = new ArrayList<String>();
+ }
+ return this.phone;
+ }
+
+ /**
+ *
+ *
+ */
+ public void setPhone(List<String> phone) {
+ this.phone = phone;
+ }
+
+ /**
+ * Gets the value of the hjid property.
+ *
+ * @return
+ * possible object is
+ * {@link Long }
+ *
+ */
+
+
+
+ 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;
+ }
+
+ @OneToMany(targetEntity = ContactMailItem.class, cascade = {
+ CascadeType.ALL
+ })
+
+ public List<ContactMailItem> getMailItems() {
+ if (this.mailItems == null) {
+ this.mailItems = new ArrayList<ContactMailItem>();
+ }
+ if (ItemUtils.shouldBeWrapped(this.mail)) {
+ this.mail = ItemUtils.wrap(this.mail, this.mailItems, ContactMailItem.class);
+ }
+ return this.mailItems;
+ }
+
+ public void setMailItems(List<ContactMailItem> value) {
+ this.mail = null;
+ this.mailItems = null;
+ this.mailItems = value;
+ if (this.mailItems == null) {
+ this.mailItems = new ArrayList<ContactMailItem>();
+ }
+ if (ItemUtils.shouldBeWrapped(this.mail)) {
+ this.mail = ItemUtils.wrap(this.mail, this.mailItems, ContactMailItem.class);
+ }
+ }
+
+ @OneToMany(targetEntity = ContactPhoneItem.class, cascade = {
+ CascadeType.ALL
+ })
+
+ public List<ContactPhoneItem> getPhoneItems() {
+ if (this.phoneItems == null) {
+ this.phoneItems = new ArrayList<ContactPhoneItem>();
+ }
+ if (ItemUtils.shouldBeWrapped(this.phone)) {
+ this.phone = ItemUtils.wrap(this.phone, this.phoneItems, ContactPhoneItem.class);
+ }
+ return this.phoneItems;
+ }
+
+ public void setPhoneItems(List<ContactPhoneItem> value) {
+ this.phone = null;
+ this.phoneItems = null;
+ this.phoneItems = value;
+ if (this.phoneItems == null) {
+ this.phoneItems = new ArrayList<ContactPhoneItem>();
+ }
+ if (ItemUtils.shouldBeWrapped(this.phone)) {
+ this.phone = ItemUtils.wrap(this.phone, this.phoneItems, ContactPhoneItem.class);
+ }
+ }
+
+ public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
+ if (!(object instanceof Contact)) {
+ return false;
+ }
+ if (this == object) {
+ return true;
+ }
+ final Contact that = ((Contact) object);
+ {
+ String lhsSurName;
+ lhsSurName = this.getSurName();
+ String rhsSurName;
+ rhsSurName = that.getSurName();
+ if (!strategy.equals(LocatorUtils.property(thisLocator, "surName", lhsSurName), LocatorUtils.property(thatLocator, "surName", rhsSurName), lhsSurName, rhsSurName)) {
+ return false;
+ }
+ }
+ {
+ String lhsGivenName;
+ lhsGivenName = this.getGivenName();
+ String rhsGivenName;
+ rhsGivenName = that.getGivenName();
+ if (!strategy.equals(LocatorUtils.property(thisLocator, "givenName", lhsGivenName), LocatorUtils.property(thatLocator, "givenName", rhsGivenName), lhsGivenName, rhsGivenName)) {
+ return false;
+ }
+ }
+ {
+ List<String> lhsMail;
+ lhsMail = (((this.mail!= null)&&(!this.mail.isEmpty()))?this.getMail():null);
+ List<String> rhsMail;
+ rhsMail = (((that.mail!= null)&&(!that.mail.isEmpty()))?that.getMail():null);
+ if (!strategy.equals(LocatorUtils.property(thisLocator, "mail", lhsMail), LocatorUtils.property(thatLocator, "mail", rhsMail), lhsMail, rhsMail)) {
+ return false;
+ }
+ }
+ {
+ String lhsType;
+ lhsType = this.getType();
+ String rhsType;
+ rhsType = that.getType();
+ if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) {
+ return false;
+ }
+ }
+ {
+ String lhsCompany;
+ lhsCompany = this.getCompany();
+ String rhsCompany;
+ rhsCompany = that.getCompany();
+ if (!strategy.equals(LocatorUtils.property(thisLocator, "company", lhsCompany), LocatorUtils.property(thatLocator, "company", rhsCompany), lhsCompany, rhsCompany)) {
+ return false;
+ }
+ }
+ {
+ List<String> lhsPhone;
+ lhsPhone = (((this.phone!= null)&&(!this.phone.isEmpty()))?this.getPhone():null);
+ List<String> rhsPhone;
+ rhsPhone = (((that.phone!= null)&&(!that.phone.isEmpty()))?that.getPhone():null);
+ if (!strategy.equals(LocatorUtils.property(thisLocator, "phone", lhsPhone), LocatorUtils.property(thatLocator, "phone", rhsPhone), lhsPhone, rhsPhone)) {
+ 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 theSurName;
+ theSurName = this.getSurName();
+ currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "surName", theSurName), currentHashCode, theSurName);
+ }
+ {
+ String theGivenName;
+ theGivenName = this.getGivenName();
+ currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "givenName", theGivenName), currentHashCode, theGivenName);
+ }
+ {
+ List<String> theMail;
+ theMail = (((this.mail!= null)&&(!this.mail.isEmpty()))?this.getMail():null);
+ currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mail", theMail), currentHashCode, theMail);
+ }
+ {
+ String theType;
+ theType = this.getType();
+ currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType);
+ }
+ {
+ String theCompany;
+ theCompany = this.getCompany();
+ currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "company", theCompany), currentHashCode, theCompany);
+ }
+ {
+ List<String> thePhone;
+ thePhone = (((this.phone!= null)&&(!this.phone.isEmpty()))?this.getPhone():null);
+ currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "phone", thePhone), currentHashCode, thePhone);
+ }
+ return currentHashCode;
+ }
+
+ public int hashCode() {
+ final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
+ return this.hashCode(null, strategy);
+ }
+
+}