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

jakarta.xml.ns.persistence.orm.OneToMany Maven / Gradle / Ivy

There is a newer version: 4.0.8
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
//


package jakarta.xml.ns.persistence.orm;

import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jvnet.jaxb.lang.CopyStrategy;
import org.jvnet.jaxb.lang.CopyTo;
import org.jvnet.jaxb.lang.Equals;
import org.jvnet.jaxb.lang.EqualsStrategy;
import org.jvnet.jaxb.lang.HashCode;
import org.jvnet.jaxb.lang.HashCodeStrategy;
import org.jvnet.jaxb.lang.JAXBCopyStrategy;
import org.jvnet.jaxb.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb.lang.JAXBMergeStrategy;
import org.jvnet.jaxb.lang.MergeFrom;
import org.jvnet.jaxb.lang.MergeStrategy;
import org.jvnet.jaxb.locator.ObjectLocator;
import org.jvnet.jaxb.locator.util.LocatorUtils;


/**
 * @Target({METHOD, FIELD}) @Retention(RUNTIME)
 *         public @interface OneToMany {
 *           Class targetEntity() default void.class;
 *           CascadeType[] cascade() default {};
 *           FetchType fetch() default LAZY;
 *           String mappedBy() default "";
 *         }
 * 
 * 

Java class for one-to-many complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *           
 *           
 *         
 *         
 *           
 *           
 *             
 *             
 *               
 *               
 *               
 *                 
 *                 
 *               
 *             
 *             
 *               
 *               
 *                 
 *                 
 *               
 *             
 *           
 *         
 *         
 *           
 *           
 *             
 *             
 *           
 *         
 *         
 *       
 *       
 *       
 *       
 *       
 *       
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "one-to-many", propOrder = { "orderBy", "orderColumn", "mapKey", "mapKeyClass", "mapKeyTemporal", "mapKeyEnumerated", "mapKeyAttributeOverride", "mapKeyConvert", "mapKeyColumn", "mapKeyJoinColumn", "mapKeyForeignKey", "joinTable", "joinColumn", "foreignKey", "cascade" }) public class OneToMany implements Cloneable, CopyTo, Equals, HashCode, MergeFrom { @XmlElement(name = "order-by") protected String orderBy; @XmlElement(name = "order-column") protected OrderColumn orderColumn; @XmlElement(name = "map-key") protected MapKey mapKey; @XmlElement(name = "map-key-class") protected MapKeyClass mapKeyClass; @XmlElement(name = "map-key-temporal") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String mapKeyTemporal; @XmlElement(name = "map-key-enumerated") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String mapKeyEnumerated; @XmlElement(name = "map-key-attribute-override") protected List mapKeyAttributeOverride; @XmlElement(name = "map-key-convert") protected List mapKeyConvert; @XmlElement(name = "map-key-column") protected MapKeyColumn mapKeyColumn; @XmlElement(name = "map-key-join-column") protected List mapKeyJoinColumn; @XmlElement(name = "map-key-foreign-key") protected ForeignKey mapKeyForeignKey; @XmlElement(name = "join-table") protected JoinTable joinTable; @XmlElement(name = "join-column") protected List joinColumn; @XmlElement(name = "foreign-key") protected ForeignKey foreignKey; protected CascadeType cascade; @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "target-entity") protected String targetEntity; @XmlAttribute(name = "fetch") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String fetch; @XmlAttribute(name = "access") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String access; @XmlAttribute(name = "mapped-by") protected String mappedBy; @XmlAttribute(name = "orphan-removal") protected Boolean orphanRemoval; /** * Gets the value of the orderBy property. * * @return * possible object is * {@link String } * */ public String getOrderBy() { return orderBy; } /** * Sets the value of the orderBy property. * * @param value * allowed object is * {@link String } * */ public void setOrderBy(String value) { this.orderBy = value; } /** * Gets the value of the orderColumn property. * * @return * possible object is * {@link OrderColumn } * */ public OrderColumn getOrderColumn() { return orderColumn; } /** * Sets the value of the orderColumn property. * * @param value * allowed object is * {@link OrderColumn } * */ public void setOrderColumn(OrderColumn value) { this.orderColumn = value; } /** * Gets the value of the mapKey property. * * @return * possible object is * {@link MapKey } * */ public MapKey getMapKey() { return mapKey; } /** * Sets the value of the mapKey property. * * @param value * allowed object is * {@link MapKey } * */ public void setMapKey(MapKey value) { this.mapKey = value; } /** * Gets the value of the mapKeyClass property. * * @return * possible object is * {@link MapKeyClass } * */ public MapKeyClass getMapKeyClass() { return mapKeyClass; } /** * Sets the value of the mapKeyClass property. * * @param value * allowed object is * {@link MapKeyClass } * */ public void setMapKeyClass(MapKeyClass value) { this.mapKeyClass = value; } /** * Gets the value of the mapKeyTemporal property. * * @return * possible object is * {@link String } * */ public String getMapKeyTemporal() { return mapKeyTemporal; } /** * Sets the value of the mapKeyTemporal property. * * @param value * allowed object is * {@link String } * */ public void setMapKeyTemporal(String value) { this.mapKeyTemporal = value; } /** * Gets the value of the mapKeyEnumerated property. * * @return * possible object is * {@link String } * */ public String getMapKeyEnumerated() { return mapKeyEnumerated; } /** * Sets the value of the mapKeyEnumerated property. * * @param value * allowed object is * {@link String } * */ public void setMapKeyEnumerated(String value) { this.mapKeyEnumerated = value; } /** * Gets the value of the mapKeyAttributeOverride 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 mapKeyAttributeOverride property.

* *

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

*
     * getMapKeyAttributeOverride().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link AttributeOverride } *

* * * @return * The value of the mapKeyAttributeOverride property. */ public List getMapKeyAttributeOverride() { if (mapKeyAttributeOverride == null) { mapKeyAttributeOverride = new ArrayList<>(); } return this.mapKeyAttributeOverride; } /** * Gets the value of the mapKeyConvert 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 mapKeyConvert property.

* *

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

*
     * getMapKeyConvert().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Convert } *

* * * @return * The value of the mapKeyConvert property. */ public List getMapKeyConvert() { if (mapKeyConvert == null) { mapKeyConvert = new ArrayList<>(); } return this.mapKeyConvert; } /** * Gets the value of the mapKeyColumn property. * * @return * possible object is * {@link MapKeyColumn } * */ public MapKeyColumn getMapKeyColumn() { return mapKeyColumn; } /** * Sets the value of the mapKeyColumn property. * * @param value * allowed object is * {@link MapKeyColumn } * */ public void setMapKeyColumn(MapKeyColumn value) { this.mapKeyColumn = value; } /** * Gets the value of the mapKeyJoinColumn 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 mapKeyJoinColumn property.

* *

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

*
     * getMapKeyJoinColumn().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MapKeyJoinColumn } *

* * * @return * The value of the mapKeyJoinColumn property. */ public List getMapKeyJoinColumn() { if (mapKeyJoinColumn == null) { mapKeyJoinColumn = new ArrayList<>(); } return this.mapKeyJoinColumn; } /** * Gets the value of the mapKeyForeignKey property. * * @return * possible object is * {@link ForeignKey } * */ public ForeignKey getMapKeyForeignKey() { return mapKeyForeignKey; } /** * Sets the value of the mapKeyForeignKey property. * * @param value * allowed object is * {@link ForeignKey } * */ public void setMapKeyForeignKey(ForeignKey value) { this.mapKeyForeignKey = value; } /** * Gets the value of the joinTable property. * * @return * possible object is * {@link JoinTable } * */ public JoinTable getJoinTable() { return joinTable; } /** * Sets the value of the joinTable property. * * @param value * allowed object is * {@link JoinTable } * */ public void setJoinTable(JoinTable value) { this.joinTable = value; } /** * Gets the value of the joinColumn 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 joinColumn property.

* *

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

*
     * getJoinColumn().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JoinColumn } *

* * * @return * The value of the joinColumn property. */ public List getJoinColumn() { if (joinColumn == null) { joinColumn = new ArrayList<>(); } return this.joinColumn; } /** * Gets the value of the foreignKey property. * * @return * possible object is * {@link ForeignKey } * */ public ForeignKey getForeignKey() { return foreignKey; } /** * Sets the value of the foreignKey property. * * @param value * allowed object is * {@link ForeignKey } * */ public void setForeignKey(ForeignKey value) { this.foreignKey = value; } /** * Gets the value of the cascade property. * * @return * possible object is * {@link CascadeType } * */ public CascadeType getCascade() { return cascade; } /** * Sets the value of the cascade property. * * @param value * allowed object is * {@link CascadeType } * */ public void setCascade(CascadeType value) { this.cascade = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ 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 targetEntity property. * * @return * possible object is * {@link String } * */ public String getTargetEntity() { return targetEntity; } /** * Sets the value of the targetEntity property. * * @param value * allowed object is * {@link String } * */ public void setTargetEntity(String value) { this.targetEntity = value; } /** * Gets the value of the fetch property. * * @return * possible object is * {@link String } * */ public String getFetch() { return fetch; } /** * Sets the value of the fetch property. * * @param value * allowed object is * {@link String } * */ public void setFetch(String value) { this.fetch = value; } /** * Gets the value of the access property. * * @return * possible object is * {@link String } * */ public String getAccess() { return access; } /** * Sets the value of the access property. * * @param value * allowed object is * {@link String } * */ public void setAccess(String value) { this.access = value; } /** * Gets the value of the mappedBy property. * * @return * possible object is * {@link String } * */ public String getMappedBy() { return mappedBy; } /** * Sets the value of the mappedBy property. * * @param value * allowed object is * {@link String } * */ public void setMappedBy(String value) { this.mappedBy = value; } /** * Gets the value of the orphanRemoval property. * * @return * possible object is * {@link Boolean } * */ public Boolean isOrphanRemoval() { return orphanRemoval; } /** * Sets the value of the orphanRemoval property. * * @param value * allowed object is * {@link Boolean } * */ public void setOrphanRemoval(Boolean value) { this.orphanRemoval = value; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final OneToMany that = ((OneToMany) object); { String lhsOrderBy; lhsOrderBy = this.getOrderBy(); String rhsOrderBy; rhsOrderBy = that.getOrderBy(); if (!strategy.equals(LocatorUtils.property(thisLocator, "orderBy", lhsOrderBy), LocatorUtils.property(thatLocator, "orderBy", rhsOrderBy), lhsOrderBy, rhsOrderBy, (this.orderBy!= null), (that.orderBy!= null))) { return false; } } { OrderColumn lhsOrderColumn; lhsOrderColumn = this.getOrderColumn(); OrderColumn rhsOrderColumn; rhsOrderColumn = that.getOrderColumn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "orderColumn", lhsOrderColumn), LocatorUtils.property(thatLocator, "orderColumn", rhsOrderColumn), lhsOrderColumn, rhsOrderColumn, (this.orderColumn!= null), (that.orderColumn!= null))) { return false; } } { MapKey lhsMapKey; lhsMapKey = this.getMapKey(); MapKey rhsMapKey; rhsMapKey = that.getMapKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mapKey", lhsMapKey), LocatorUtils.property(thatLocator, "mapKey", rhsMapKey), lhsMapKey, rhsMapKey, (this.mapKey!= null), (that.mapKey!= null))) { return false; } } { MapKeyClass lhsMapKeyClass; lhsMapKeyClass = this.getMapKeyClass(); MapKeyClass rhsMapKeyClass; rhsMapKeyClass = that.getMapKeyClass(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mapKeyClass", lhsMapKeyClass), LocatorUtils.property(thatLocator, "mapKeyClass", rhsMapKeyClass), lhsMapKeyClass, rhsMapKeyClass, (this.mapKeyClass!= null), (that.mapKeyClass!= null))) { return false; } } { String lhsMapKeyTemporal; lhsMapKeyTemporal = this.getMapKeyTemporal(); String rhsMapKeyTemporal; rhsMapKeyTemporal = that.getMapKeyTemporal(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mapKeyTemporal", lhsMapKeyTemporal), LocatorUtils.property(thatLocator, "mapKeyTemporal", rhsMapKeyTemporal), lhsMapKeyTemporal, rhsMapKeyTemporal, (this.mapKeyTemporal!= null), (that.mapKeyTemporal!= null))) { return false; } } { String lhsMapKeyEnumerated; lhsMapKeyEnumerated = this.getMapKeyEnumerated(); String rhsMapKeyEnumerated; rhsMapKeyEnumerated = that.getMapKeyEnumerated(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mapKeyEnumerated", lhsMapKeyEnumerated), LocatorUtils.property(thatLocator, "mapKeyEnumerated", rhsMapKeyEnumerated), lhsMapKeyEnumerated, rhsMapKeyEnumerated, (this.mapKeyEnumerated!= null), (that.mapKeyEnumerated!= null))) { return false; } } { List lhsMapKeyAttributeOverride; lhsMapKeyAttributeOverride = (((this.mapKeyAttributeOverride!= null)&&(!this.mapKeyAttributeOverride.isEmpty()))?this.getMapKeyAttributeOverride():null); List rhsMapKeyAttributeOverride; rhsMapKeyAttributeOverride = (((that.mapKeyAttributeOverride!= null)&&(!that.mapKeyAttributeOverride.isEmpty()))?that.getMapKeyAttributeOverride():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "mapKeyAttributeOverride", lhsMapKeyAttributeOverride), LocatorUtils.property(thatLocator, "mapKeyAttributeOverride", rhsMapKeyAttributeOverride), lhsMapKeyAttributeOverride, rhsMapKeyAttributeOverride, ((this.mapKeyAttributeOverride!= null)&&(!this.mapKeyAttributeOverride.isEmpty())), ((that.mapKeyAttributeOverride!= null)&&(!that.mapKeyAttributeOverride.isEmpty())))) { return false; } } { List lhsMapKeyConvert; lhsMapKeyConvert = (((this.mapKeyConvert!= null)&&(!this.mapKeyConvert.isEmpty()))?this.getMapKeyConvert():null); List rhsMapKeyConvert; rhsMapKeyConvert = (((that.mapKeyConvert!= null)&&(!that.mapKeyConvert.isEmpty()))?that.getMapKeyConvert():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "mapKeyConvert", lhsMapKeyConvert), LocatorUtils.property(thatLocator, "mapKeyConvert", rhsMapKeyConvert), lhsMapKeyConvert, rhsMapKeyConvert, ((this.mapKeyConvert!= null)&&(!this.mapKeyConvert.isEmpty())), ((that.mapKeyConvert!= null)&&(!that.mapKeyConvert.isEmpty())))) { return false; } } { MapKeyColumn lhsMapKeyColumn; lhsMapKeyColumn = this.getMapKeyColumn(); MapKeyColumn rhsMapKeyColumn; rhsMapKeyColumn = that.getMapKeyColumn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mapKeyColumn", lhsMapKeyColumn), LocatorUtils.property(thatLocator, "mapKeyColumn", rhsMapKeyColumn), lhsMapKeyColumn, rhsMapKeyColumn, (this.mapKeyColumn!= null), (that.mapKeyColumn!= null))) { return false; } } { List lhsMapKeyJoinColumn; lhsMapKeyJoinColumn = (((this.mapKeyJoinColumn!= null)&&(!this.mapKeyJoinColumn.isEmpty()))?this.getMapKeyJoinColumn():null); List rhsMapKeyJoinColumn; rhsMapKeyJoinColumn = (((that.mapKeyJoinColumn!= null)&&(!that.mapKeyJoinColumn.isEmpty()))?that.getMapKeyJoinColumn():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "mapKeyJoinColumn", lhsMapKeyJoinColumn), LocatorUtils.property(thatLocator, "mapKeyJoinColumn", rhsMapKeyJoinColumn), lhsMapKeyJoinColumn, rhsMapKeyJoinColumn, ((this.mapKeyJoinColumn!= null)&&(!this.mapKeyJoinColumn.isEmpty())), ((that.mapKeyJoinColumn!= null)&&(!that.mapKeyJoinColumn.isEmpty())))) { return false; } } { ForeignKey lhsMapKeyForeignKey; lhsMapKeyForeignKey = this.getMapKeyForeignKey(); ForeignKey rhsMapKeyForeignKey; rhsMapKeyForeignKey = that.getMapKeyForeignKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mapKeyForeignKey", lhsMapKeyForeignKey), LocatorUtils.property(thatLocator, "mapKeyForeignKey", rhsMapKeyForeignKey), lhsMapKeyForeignKey, rhsMapKeyForeignKey, (this.mapKeyForeignKey!= null), (that.mapKeyForeignKey!= null))) { return false; } } { JoinTable lhsJoinTable; lhsJoinTable = this.getJoinTable(); JoinTable rhsJoinTable; rhsJoinTable = that.getJoinTable(); if (!strategy.equals(LocatorUtils.property(thisLocator, "joinTable", lhsJoinTable), LocatorUtils.property(thatLocator, "joinTable", rhsJoinTable), lhsJoinTable, rhsJoinTable, (this.joinTable!= null), (that.joinTable!= null))) { return false; } } { List lhsJoinColumn; lhsJoinColumn = (((this.joinColumn!= null)&&(!this.joinColumn.isEmpty()))?this.getJoinColumn():null); List rhsJoinColumn; rhsJoinColumn = (((that.joinColumn!= null)&&(!that.joinColumn.isEmpty()))?that.getJoinColumn():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "joinColumn", lhsJoinColumn), LocatorUtils.property(thatLocator, "joinColumn", rhsJoinColumn), lhsJoinColumn, rhsJoinColumn, ((this.joinColumn!= null)&&(!this.joinColumn.isEmpty())), ((that.joinColumn!= null)&&(!that.joinColumn.isEmpty())))) { return false; } } { ForeignKey lhsForeignKey; lhsForeignKey = this.getForeignKey(); ForeignKey rhsForeignKey; rhsForeignKey = that.getForeignKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "foreignKey", lhsForeignKey), LocatorUtils.property(thatLocator, "foreignKey", rhsForeignKey), lhsForeignKey, rhsForeignKey, (this.foreignKey!= null), (that.foreignKey!= null))) { return false; } } { CascadeType lhsCascade; lhsCascade = this.getCascade(); CascadeType rhsCascade; rhsCascade = that.getCascade(); if (!strategy.equals(LocatorUtils.property(thisLocator, "cascade", lhsCascade), LocatorUtils.property(thatLocator, "cascade", rhsCascade), lhsCascade, rhsCascade, (this.cascade!= null), (that.cascade!= null))) { 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, (this.name!= null), (that.name!= null))) { return false; } } { String lhsTargetEntity; lhsTargetEntity = this.getTargetEntity(); String rhsTargetEntity; rhsTargetEntity = that.getTargetEntity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "targetEntity", lhsTargetEntity), LocatorUtils.property(thatLocator, "targetEntity", rhsTargetEntity), lhsTargetEntity, rhsTargetEntity, (this.targetEntity!= null), (that.targetEntity!= null))) { return false; } } { String lhsFetch; lhsFetch = this.getFetch(); String rhsFetch; rhsFetch = that.getFetch(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fetch", lhsFetch), LocatorUtils.property(thatLocator, "fetch", rhsFetch), lhsFetch, rhsFetch, (this.fetch!= null), (that.fetch!= null))) { return false; } } { String lhsAccess; lhsAccess = this.getAccess(); String rhsAccess; rhsAccess = that.getAccess(); if (!strategy.equals(LocatorUtils.property(thisLocator, "access", lhsAccess), LocatorUtils.property(thatLocator, "access", rhsAccess), lhsAccess, rhsAccess, (this.access!= null), (that.access!= null))) { return false; } } { String lhsMappedBy; lhsMappedBy = this.getMappedBy(); String rhsMappedBy; rhsMappedBy = that.getMappedBy(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mappedBy", lhsMappedBy), LocatorUtils.property(thatLocator, "mappedBy", rhsMappedBy), lhsMappedBy, rhsMappedBy, (this.mappedBy!= null), (that.mappedBy!= null))) { return false; } } { Boolean lhsOrphanRemoval; lhsOrphanRemoval = this.isOrphanRemoval(); Boolean rhsOrphanRemoval; rhsOrphanRemoval = that.isOrphanRemoval(); if (!strategy.equals(LocatorUtils.property(thisLocator, "orphanRemoval", lhsOrphanRemoval), LocatorUtils.property(thatLocator, "orphanRemoval", rhsOrphanRemoval), lhsOrphanRemoval, rhsOrphanRemoval, (this.orphanRemoval!= null), (that.orphanRemoval!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theOrderBy; theOrderBy = this.getOrderBy(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "orderBy", theOrderBy), currentHashCode, theOrderBy, (this.orderBy!= null)); } { OrderColumn theOrderColumn; theOrderColumn = this.getOrderColumn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "orderColumn", theOrderColumn), currentHashCode, theOrderColumn, (this.orderColumn!= null)); } { MapKey theMapKey; theMapKey = this.getMapKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mapKey", theMapKey), currentHashCode, theMapKey, (this.mapKey!= null)); } { MapKeyClass theMapKeyClass; theMapKeyClass = this.getMapKeyClass(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mapKeyClass", theMapKeyClass), currentHashCode, theMapKeyClass, (this.mapKeyClass!= null)); } { String theMapKeyTemporal; theMapKeyTemporal = this.getMapKeyTemporal(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mapKeyTemporal", theMapKeyTemporal), currentHashCode, theMapKeyTemporal, (this.mapKeyTemporal!= null)); } { String theMapKeyEnumerated; theMapKeyEnumerated = this.getMapKeyEnumerated(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mapKeyEnumerated", theMapKeyEnumerated), currentHashCode, theMapKeyEnumerated, (this.mapKeyEnumerated!= null)); } { List theMapKeyAttributeOverride; theMapKeyAttributeOverride = (((this.mapKeyAttributeOverride!= null)&&(!this.mapKeyAttributeOverride.isEmpty()))?this.getMapKeyAttributeOverride():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mapKeyAttributeOverride", theMapKeyAttributeOverride), currentHashCode, theMapKeyAttributeOverride, ((this.mapKeyAttributeOverride!= null)&&(!this.mapKeyAttributeOverride.isEmpty()))); } { List theMapKeyConvert; theMapKeyConvert = (((this.mapKeyConvert!= null)&&(!this.mapKeyConvert.isEmpty()))?this.getMapKeyConvert():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mapKeyConvert", theMapKeyConvert), currentHashCode, theMapKeyConvert, ((this.mapKeyConvert!= null)&&(!this.mapKeyConvert.isEmpty()))); } { MapKeyColumn theMapKeyColumn; theMapKeyColumn = this.getMapKeyColumn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mapKeyColumn", theMapKeyColumn), currentHashCode, theMapKeyColumn, (this.mapKeyColumn!= null)); } { List theMapKeyJoinColumn; theMapKeyJoinColumn = (((this.mapKeyJoinColumn!= null)&&(!this.mapKeyJoinColumn.isEmpty()))?this.getMapKeyJoinColumn():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mapKeyJoinColumn", theMapKeyJoinColumn), currentHashCode, theMapKeyJoinColumn, ((this.mapKeyJoinColumn!= null)&&(!this.mapKeyJoinColumn.isEmpty()))); } { ForeignKey theMapKeyForeignKey; theMapKeyForeignKey = this.getMapKeyForeignKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mapKeyForeignKey", theMapKeyForeignKey), currentHashCode, theMapKeyForeignKey, (this.mapKeyForeignKey!= null)); } { JoinTable theJoinTable; theJoinTable = this.getJoinTable(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "joinTable", theJoinTable), currentHashCode, theJoinTable, (this.joinTable!= null)); } { List theJoinColumn; theJoinColumn = (((this.joinColumn!= null)&&(!this.joinColumn.isEmpty()))?this.getJoinColumn():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "joinColumn", theJoinColumn), currentHashCode, theJoinColumn, ((this.joinColumn!= null)&&(!this.joinColumn.isEmpty()))); } { ForeignKey theForeignKey; theForeignKey = this.getForeignKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "foreignKey", theForeignKey), currentHashCode, theForeignKey, (this.foreignKey!= null)); } { CascadeType theCascade; theCascade = this.getCascade(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cascade", theCascade), currentHashCode, theCascade, (this.cascade!= null)); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { String theTargetEntity; theTargetEntity = this.getTargetEntity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetEntity", theTargetEntity), currentHashCode, theTargetEntity, (this.targetEntity!= null)); } { String theFetch; theFetch = this.getFetch(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fetch", theFetch), currentHashCode, theFetch, (this.fetch!= null)); } { String theAccess; theAccess = this.getAccess(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "access", theAccess), currentHashCode, theAccess, (this.access!= null)); } { String theMappedBy; theMappedBy = this.getMappedBy(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mappedBy", theMappedBy), currentHashCode, theMappedBy, (this.mappedBy!= null)); } { Boolean theOrphanRemoval; theOrphanRemoval = this.isOrphanRemoval(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "orphanRemoval", theOrphanRemoval), currentHashCode, theOrphanRemoval, (this.orphanRemoval!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public Object clone() { return copyTo(createNewInstance()); } @Override public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.getInstance(); return copyTo(null, target, strategy); } @Override public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof OneToMany) { final OneToMany copy = ((OneToMany) draftCopy); { Boolean orderByShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.orderBy!= null)); if (orderByShouldBeCopiedAndSet == Boolean.TRUE) { String sourceOrderBy; sourceOrderBy = this.getOrderBy(); String copyOrderBy = ((String) strategy.copy(LocatorUtils.property(locator, "orderBy", sourceOrderBy), sourceOrderBy, (this.orderBy!= null))); copy.setOrderBy(copyOrderBy); } else { if (orderByShouldBeCopiedAndSet == Boolean.FALSE) { copy.orderBy = null; } } } { Boolean orderColumnShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.orderColumn!= null)); if (orderColumnShouldBeCopiedAndSet == Boolean.TRUE) { OrderColumn sourceOrderColumn; sourceOrderColumn = this.getOrderColumn(); OrderColumn copyOrderColumn = ((OrderColumn) strategy.copy(LocatorUtils.property(locator, "orderColumn", sourceOrderColumn), sourceOrderColumn, (this.orderColumn!= null))); copy.setOrderColumn(copyOrderColumn); } else { if (orderColumnShouldBeCopiedAndSet == Boolean.FALSE) { copy.orderColumn = null; } } } { Boolean mapKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.mapKey!= null)); if (mapKeyShouldBeCopiedAndSet == Boolean.TRUE) { MapKey sourceMapKey; sourceMapKey = this.getMapKey(); MapKey copyMapKey = ((MapKey) strategy.copy(LocatorUtils.property(locator, "mapKey", sourceMapKey), sourceMapKey, (this.mapKey!= null))); copy.setMapKey(copyMapKey); } else { if (mapKeyShouldBeCopiedAndSet == Boolean.FALSE) { copy.mapKey = null; } } } { Boolean mapKeyClassShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.mapKeyClass!= null)); if (mapKeyClassShouldBeCopiedAndSet == Boolean.TRUE) { MapKeyClass sourceMapKeyClass; sourceMapKeyClass = this.getMapKeyClass(); MapKeyClass copyMapKeyClass = ((MapKeyClass) strategy.copy(LocatorUtils.property(locator, "mapKeyClass", sourceMapKeyClass), sourceMapKeyClass, (this.mapKeyClass!= null))); copy.setMapKeyClass(copyMapKeyClass); } else { if (mapKeyClassShouldBeCopiedAndSet == Boolean.FALSE) { copy.mapKeyClass = null; } } } { Boolean mapKeyTemporalShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.mapKeyTemporal!= null)); if (mapKeyTemporalShouldBeCopiedAndSet == Boolean.TRUE) { String sourceMapKeyTemporal; sourceMapKeyTemporal = this.getMapKeyTemporal(); String copyMapKeyTemporal = ((String) strategy.copy(LocatorUtils.property(locator, "mapKeyTemporal", sourceMapKeyTemporal), sourceMapKeyTemporal, (this.mapKeyTemporal!= null))); copy.setMapKeyTemporal(copyMapKeyTemporal); } else { if (mapKeyTemporalShouldBeCopiedAndSet == Boolean.FALSE) { copy.mapKeyTemporal = null; } } } { Boolean mapKeyEnumeratedShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.mapKeyEnumerated!= null)); if (mapKeyEnumeratedShouldBeCopiedAndSet == Boolean.TRUE) { String sourceMapKeyEnumerated; sourceMapKeyEnumerated = this.getMapKeyEnumerated(); String copyMapKeyEnumerated = ((String) strategy.copy(LocatorUtils.property(locator, "mapKeyEnumerated", sourceMapKeyEnumerated), sourceMapKeyEnumerated, (this.mapKeyEnumerated!= null))); copy.setMapKeyEnumerated(copyMapKeyEnumerated); } else { if (mapKeyEnumeratedShouldBeCopiedAndSet == Boolean.FALSE) { copy.mapKeyEnumerated = null; } } } { Boolean mapKeyAttributeOverrideShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.mapKeyAttributeOverride!= null)&&(!this.mapKeyAttributeOverride.isEmpty()))); if (mapKeyAttributeOverrideShouldBeCopiedAndSet == Boolean.TRUE) { List sourceMapKeyAttributeOverride; sourceMapKeyAttributeOverride = (((this.mapKeyAttributeOverride!= null)&&(!this.mapKeyAttributeOverride.isEmpty()))?this.getMapKeyAttributeOverride():null); @SuppressWarnings("unchecked") List copyMapKeyAttributeOverride = ((List ) strategy.copy(LocatorUtils.property(locator, "mapKeyAttributeOverride", sourceMapKeyAttributeOverride), sourceMapKeyAttributeOverride, ((this.mapKeyAttributeOverride!= null)&&(!this.mapKeyAttributeOverride.isEmpty())))); copy.mapKeyAttributeOverride = null; if (copyMapKeyAttributeOverride!= null) { List uniqueMapKeyAttributeOverridel = copy.getMapKeyAttributeOverride(); uniqueMapKeyAttributeOverridel.addAll(copyMapKeyAttributeOverride); } } else { if (mapKeyAttributeOverrideShouldBeCopiedAndSet == Boolean.FALSE) { copy.mapKeyAttributeOverride = null; } } } { Boolean mapKeyConvertShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.mapKeyConvert!= null)&&(!this.mapKeyConvert.isEmpty()))); if (mapKeyConvertShouldBeCopiedAndSet == Boolean.TRUE) { List sourceMapKeyConvert; sourceMapKeyConvert = (((this.mapKeyConvert!= null)&&(!this.mapKeyConvert.isEmpty()))?this.getMapKeyConvert():null); @SuppressWarnings("unchecked") List copyMapKeyConvert = ((List ) strategy.copy(LocatorUtils.property(locator, "mapKeyConvert", sourceMapKeyConvert), sourceMapKeyConvert, ((this.mapKeyConvert!= null)&&(!this.mapKeyConvert.isEmpty())))); copy.mapKeyConvert = null; if (copyMapKeyConvert!= null) { List uniqueMapKeyConvertl = copy.getMapKeyConvert(); uniqueMapKeyConvertl.addAll(copyMapKeyConvert); } } else { if (mapKeyConvertShouldBeCopiedAndSet == Boolean.FALSE) { copy.mapKeyConvert = null; } } } { Boolean mapKeyColumnShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.mapKeyColumn!= null)); if (mapKeyColumnShouldBeCopiedAndSet == Boolean.TRUE) { MapKeyColumn sourceMapKeyColumn; sourceMapKeyColumn = this.getMapKeyColumn(); MapKeyColumn copyMapKeyColumn = ((MapKeyColumn) strategy.copy(LocatorUtils.property(locator, "mapKeyColumn", sourceMapKeyColumn), sourceMapKeyColumn, (this.mapKeyColumn!= null))); copy.setMapKeyColumn(copyMapKeyColumn); } else { if (mapKeyColumnShouldBeCopiedAndSet == Boolean.FALSE) { copy.mapKeyColumn = null; } } } { Boolean mapKeyJoinColumnShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.mapKeyJoinColumn!= null)&&(!this.mapKeyJoinColumn.isEmpty()))); if (mapKeyJoinColumnShouldBeCopiedAndSet == Boolean.TRUE) { List sourceMapKeyJoinColumn; sourceMapKeyJoinColumn = (((this.mapKeyJoinColumn!= null)&&(!this.mapKeyJoinColumn.isEmpty()))?this.getMapKeyJoinColumn():null); @SuppressWarnings("unchecked") List copyMapKeyJoinColumn = ((List ) strategy.copy(LocatorUtils.property(locator, "mapKeyJoinColumn", sourceMapKeyJoinColumn), sourceMapKeyJoinColumn, ((this.mapKeyJoinColumn!= null)&&(!this.mapKeyJoinColumn.isEmpty())))); copy.mapKeyJoinColumn = null; if (copyMapKeyJoinColumn!= null) { List uniqueMapKeyJoinColumnl = copy.getMapKeyJoinColumn(); uniqueMapKeyJoinColumnl.addAll(copyMapKeyJoinColumn); } } else { if (mapKeyJoinColumnShouldBeCopiedAndSet == Boolean.FALSE) { copy.mapKeyJoinColumn = null; } } } { Boolean mapKeyForeignKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.mapKeyForeignKey!= null)); if (mapKeyForeignKeyShouldBeCopiedAndSet == Boolean.TRUE) { ForeignKey sourceMapKeyForeignKey; sourceMapKeyForeignKey = this.getMapKeyForeignKey(); ForeignKey copyMapKeyForeignKey = ((ForeignKey) strategy.copy(LocatorUtils.property(locator, "mapKeyForeignKey", sourceMapKeyForeignKey), sourceMapKeyForeignKey, (this.mapKeyForeignKey!= null))); copy.setMapKeyForeignKey(copyMapKeyForeignKey); } else { if (mapKeyForeignKeyShouldBeCopiedAndSet == Boolean.FALSE) { copy.mapKeyForeignKey = null; } } } { Boolean joinTableShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.joinTable!= null)); if (joinTableShouldBeCopiedAndSet == Boolean.TRUE) { JoinTable sourceJoinTable; sourceJoinTable = this.getJoinTable(); JoinTable copyJoinTable = ((JoinTable) strategy.copy(LocatorUtils.property(locator, "joinTable", sourceJoinTable), sourceJoinTable, (this.joinTable!= null))); copy.setJoinTable(copyJoinTable); } else { if (joinTableShouldBeCopiedAndSet == Boolean.FALSE) { copy.joinTable = null; } } } { Boolean joinColumnShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.joinColumn!= null)&&(!this.joinColumn.isEmpty()))); if (joinColumnShouldBeCopiedAndSet == Boolean.TRUE) { List sourceJoinColumn; sourceJoinColumn = (((this.joinColumn!= null)&&(!this.joinColumn.isEmpty()))?this.getJoinColumn():null); @SuppressWarnings("unchecked") List copyJoinColumn = ((List ) strategy.copy(LocatorUtils.property(locator, "joinColumn", sourceJoinColumn), sourceJoinColumn, ((this.joinColumn!= null)&&(!this.joinColumn.isEmpty())))); copy.joinColumn = null; if (copyJoinColumn!= null) { List uniqueJoinColumnl = copy.getJoinColumn(); uniqueJoinColumnl.addAll(copyJoinColumn); } } else { if (joinColumnShouldBeCopiedAndSet == Boolean.FALSE) { copy.joinColumn = null; } } } { Boolean foreignKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.foreignKey!= null)); if (foreignKeyShouldBeCopiedAndSet == Boolean.TRUE) { ForeignKey sourceForeignKey; sourceForeignKey = this.getForeignKey(); ForeignKey copyForeignKey = ((ForeignKey) strategy.copy(LocatorUtils.property(locator, "foreignKey", sourceForeignKey), sourceForeignKey, (this.foreignKey!= null))); copy.setForeignKey(copyForeignKey); } else { if (foreignKeyShouldBeCopiedAndSet == Boolean.FALSE) { copy.foreignKey = null; } } } { Boolean cascadeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.cascade!= null)); if (cascadeShouldBeCopiedAndSet == Boolean.TRUE) { CascadeType sourceCascade; sourceCascade = this.getCascade(); CascadeType copyCascade = ((CascadeType) strategy.copy(LocatorUtils.property(locator, "cascade", sourceCascade), sourceCascade, (this.cascade!= null))); copy.setCascade(copyCascade); } else { if (cascadeShouldBeCopiedAndSet == Boolean.FALSE) { copy.cascade = null; } } } { Boolean nameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.name!= null)); if (nameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceName; sourceName = this.getName(); String copyName = ((String) strategy.copy(LocatorUtils.property(locator, "name", sourceName), sourceName, (this.name!= null))); copy.setName(copyName); } else { if (nameShouldBeCopiedAndSet == Boolean.FALSE) { copy.name = null; } } } { Boolean targetEntityShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.targetEntity!= null)); if (targetEntityShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTargetEntity; sourceTargetEntity = this.getTargetEntity(); String copyTargetEntity = ((String) strategy.copy(LocatorUtils.property(locator, "targetEntity", sourceTargetEntity), sourceTargetEntity, (this.targetEntity!= null))); copy.setTargetEntity(copyTargetEntity); } else { if (targetEntityShouldBeCopiedAndSet == Boolean.FALSE) { copy.targetEntity = null; } } } { Boolean fetchShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.fetch!= null)); if (fetchShouldBeCopiedAndSet == Boolean.TRUE) { String sourceFetch; sourceFetch = this.getFetch(); String copyFetch = ((String) strategy.copy(LocatorUtils.property(locator, "fetch", sourceFetch), sourceFetch, (this.fetch!= null))); copy.setFetch(copyFetch); } else { if (fetchShouldBeCopiedAndSet == Boolean.FALSE) { copy.fetch = null; } } } { Boolean accessShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.access!= null)); if (accessShouldBeCopiedAndSet == Boolean.TRUE) { String sourceAccess; sourceAccess = this.getAccess(); String copyAccess = ((String) strategy.copy(LocatorUtils.property(locator, "access", sourceAccess), sourceAccess, (this.access!= null))); copy.setAccess(copyAccess); } else { if (accessShouldBeCopiedAndSet == Boolean.FALSE) { copy.access = null; } } } { Boolean mappedByShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.mappedBy!= null)); if (mappedByShouldBeCopiedAndSet == Boolean.TRUE) { String sourceMappedBy; sourceMappedBy = this.getMappedBy(); String copyMappedBy = ((String) strategy.copy(LocatorUtils.property(locator, "mappedBy", sourceMappedBy), sourceMappedBy, (this.mappedBy!= null))); copy.setMappedBy(copyMappedBy); } else { if (mappedByShouldBeCopiedAndSet == Boolean.FALSE) { copy.mappedBy = null; } } } { Boolean orphanRemovalShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.orphanRemoval!= null)); if (orphanRemovalShouldBeCopiedAndSet == Boolean.TRUE) { Boolean sourceOrphanRemoval; sourceOrphanRemoval = this.isOrphanRemoval(); Boolean copyOrphanRemoval = ((Boolean) strategy.copy(LocatorUtils.property(locator, "orphanRemoval", sourceOrphanRemoval), sourceOrphanRemoval, (this.orphanRemoval!= null))); copy.setOrphanRemoval(copyOrphanRemoval); } else { if (orphanRemovalShouldBeCopiedAndSet == Boolean.FALSE) { copy.orphanRemoval = null; } } } } return draftCopy; } @Override public Object createNewInstance() { return new OneToMany(); } @Override public void mergeFrom(Object left, Object right) { final MergeStrategy strategy = JAXBMergeStrategy.getInstance(); mergeFrom(null, null, left, right, strategy); } @Override public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) { if (right instanceof OneToMany) { final OneToMany target = this; final OneToMany leftObject = ((OneToMany) left); final OneToMany rightObject = ((OneToMany) right); { Boolean orderByShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.orderBy!= null), (rightObject.orderBy!= null)); if (orderByShouldBeMergedAndSet == Boolean.TRUE) { String lhsOrderBy; lhsOrderBy = leftObject.getOrderBy(); String rhsOrderBy; rhsOrderBy = rightObject.getOrderBy(); String mergedOrderBy = ((String) strategy.merge(LocatorUtils.property(leftLocator, "orderBy", lhsOrderBy), LocatorUtils.property(rightLocator, "orderBy", rhsOrderBy), lhsOrderBy, rhsOrderBy, (leftObject.orderBy!= null), (rightObject.orderBy!= null))); target.setOrderBy(mergedOrderBy); } else { if (orderByShouldBeMergedAndSet == Boolean.FALSE) { target.orderBy = null; } } } { Boolean orderColumnShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.orderColumn!= null), (rightObject.orderColumn!= null)); if (orderColumnShouldBeMergedAndSet == Boolean.TRUE) { OrderColumn lhsOrderColumn; lhsOrderColumn = leftObject.getOrderColumn(); OrderColumn rhsOrderColumn; rhsOrderColumn = rightObject.getOrderColumn(); OrderColumn mergedOrderColumn = ((OrderColumn) strategy.merge(LocatorUtils.property(leftLocator, "orderColumn", lhsOrderColumn), LocatorUtils.property(rightLocator, "orderColumn", rhsOrderColumn), lhsOrderColumn, rhsOrderColumn, (leftObject.orderColumn!= null), (rightObject.orderColumn!= null))); target.setOrderColumn(mergedOrderColumn); } else { if (orderColumnShouldBeMergedAndSet == Boolean.FALSE) { target.orderColumn = null; } } } { Boolean mapKeyShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.mapKey!= null), (rightObject.mapKey!= null)); if (mapKeyShouldBeMergedAndSet == Boolean.TRUE) { MapKey lhsMapKey; lhsMapKey = leftObject.getMapKey(); MapKey rhsMapKey; rhsMapKey = rightObject.getMapKey(); MapKey mergedMapKey = ((MapKey) strategy.merge(LocatorUtils.property(leftLocator, "mapKey", lhsMapKey), LocatorUtils.property(rightLocator, "mapKey", rhsMapKey), lhsMapKey, rhsMapKey, (leftObject.mapKey!= null), (rightObject.mapKey!= null))); target.setMapKey(mergedMapKey); } else { if (mapKeyShouldBeMergedAndSet == Boolean.FALSE) { target.mapKey = null; } } } { Boolean mapKeyClassShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.mapKeyClass!= null), (rightObject.mapKeyClass!= null)); if (mapKeyClassShouldBeMergedAndSet == Boolean.TRUE) { MapKeyClass lhsMapKeyClass; lhsMapKeyClass = leftObject.getMapKeyClass(); MapKeyClass rhsMapKeyClass; rhsMapKeyClass = rightObject.getMapKeyClass(); MapKeyClass mergedMapKeyClass = ((MapKeyClass) strategy.merge(LocatorUtils.property(leftLocator, "mapKeyClass", lhsMapKeyClass), LocatorUtils.property(rightLocator, "mapKeyClass", rhsMapKeyClass), lhsMapKeyClass, rhsMapKeyClass, (leftObject.mapKeyClass!= null), (rightObject.mapKeyClass!= null))); target.setMapKeyClass(mergedMapKeyClass); } else { if (mapKeyClassShouldBeMergedAndSet == Boolean.FALSE) { target.mapKeyClass = null; } } } { Boolean mapKeyTemporalShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.mapKeyTemporal!= null), (rightObject.mapKeyTemporal!= null)); if (mapKeyTemporalShouldBeMergedAndSet == Boolean.TRUE) { String lhsMapKeyTemporal; lhsMapKeyTemporal = leftObject.getMapKeyTemporal(); String rhsMapKeyTemporal; rhsMapKeyTemporal = rightObject.getMapKeyTemporal(); String mergedMapKeyTemporal = ((String) strategy.merge(LocatorUtils.property(leftLocator, "mapKeyTemporal", lhsMapKeyTemporal), LocatorUtils.property(rightLocator, "mapKeyTemporal", rhsMapKeyTemporal), lhsMapKeyTemporal, rhsMapKeyTemporal, (leftObject.mapKeyTemporal!= null), (rightObject.mapKeyTemporal!= null))); target.setMapKeyTemporal(mergedMapKeyTemporal); } else { if (mapKeyTemporalShouldBeMergedAndSet == Boolean.FALSE) { target.mapKeyTemporal = null; } } } { Boolean mapKeyEnumeratedShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.mapKeyEnumerated!= null), (rightObject.mapKeyEnumerated!= null)); if (mapKeyEnumeratedShouldBeMergedAndSet == Boolean.TRUE) { String lhsMapKeyEnumerated; lhsMapKeyEnumerated = leftObject.getMapKeyEnumerated(); String rhsMapKeyEnumerated; rhsMapKeyEnumerated = rightObject.getMapKeyEnumerated(); String mergedMapKeyEnumerated = ((String) strategy.merge(LocatorUtils.property(leftLocator, "mapKeyEnumerated", lhsMapKeyEnumerated), LocatorUtils.property(rightLocator, "mapKeyEnumerated", rhsMapKeyEnumerated), lhsMapKeyEnumerated, rhsMapKeyEnumerated, (leftObject.mapKeyEnumerated!= null), (rightObject.mapKeyEnumerated!= null))); target.setMapKeyEnumerated(mergedMapKeyEnumerated); } else { if (mapKeyEnumeratedShouldBeMergedAndSet == Boolean.FALSE) { target.mapKeyEnumerated = null; } } } { Boolean mapKeyAttributeOverrideShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, ((leftObject.mapKeyAttributeOverride!= null)&&(!leftObject.mapKeyAttributeOverride.isEmpty())), ((rightObject.mapKeyAttributeOverride!= null)&&(!rightObject.mapKeyAttributeOverride.isEmpty()))); if (mapKeyAttributeOverrideShouldBeMergedAndSet == Boolean.TRUE) { List lhsMapKeyAttributeOverride; lhsMapKeyAttributeOverride = (((leftObject.mapKeyAttributeOverride!= null)&&(!leftObject.mapKeyAttributeOverride.isEmpty()))?leftObject.getMapKeyAttributeOverride():null); List rhsMapKeyAttributeOverride; rhsMapKeyAttributeOverride = (((rightObject.mapKeyAttributeOverride!= null)&&(!rightObject.mapKeyAttributeOverride.isEmpty()))?rightObject.getMapKeyAttributeOverride():null); List mergedMapKeyAttributeOverride = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "mapKeyAttributeOverride", lhsMapKeyAttributeOverride), LocatorUtils.property(rightLocator, "mapKeyAttributeOverride", rhsMapKeyAttributeOverride), lhsMapKeyAttributeOverride, rhsMapKeyAttributeOverride, ((leftObject.mapKeyAttributeOverride!= null)&&(!leftObject.mapKeyAttributeOverride.isEmpty())), ((rightObject.mapKeyAttributeOverride!= null)&&(!rightObject.mapKeyAttributeOverride.isEmpty())))); target.mapKeyAttributeOverride = null; if (mergedMapKeyAttributeOverride!= null) { List uniqueMapKeyAttributeOverridel = target.getMapKeyAttributeOverride(); uniqueMapKeyAttributeOverridel.addAll(mergedMapKeyAttributeOverride); } } else { if (mapKeyAttributeOverrideShouldBeMergedAndSet == Boolean.FALSE) { target.mapKeyAttributeOverride = null; } } } { Boolean mapKeyConvertShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, ((leftObject.mapKeyConvert!= null)&&(!leftObject.mapKeyConvert.isEmpty())), ((rightObject.mapKeyConvert!= null)&&(!rightObject.mapKeyConvert.isEmpty()))); if (mapKeyConvertShouldBeMergedAndSet == Boolean.TRUE) { List lhsMapKeyConvert; lhsMapKeyConvert = (((leftObject.mapKeyConvert!= null)&&(!leftObject.mapKeyConvert.isEmpty()))?leftObject.getMapKeyConvert():null); List rhsMapKeyConvert; rhsMapKeyConvert = (((rightObject.mapKeyConvert!= null)&&(!rightObject.mapKeyConvert.isEmpty()))?rightObject.getMapKeyConvert():null); List mergedMapKeyConvert = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "mapKeyConvert", lhsMapKeyConvert), LocatorUtils.property(rightLocator, "mapKeyConvert", rhsMapKeyConvert), lhsMapKeyConvert, rhsMapKeyConvert, ((leftObject.mapKeyConvert!= null)&&(!leftObject.mapKeyConvert.isEmpty())), ((rightObject.mapKeyConvert!= null)&&(!rightObject.mapKeyConvert.isEmpty())))); target.mapKeyConvert = null; if (mergedMapKeyConvert!= null) { List uniqueMapKeyConvertl = target.getMapKeyConvert(); uniqueMapKeyConvertl.addAll(mergedMapKeyConvert); } } else { if (mapKeyConvertShouldBeMergedAndSet == Boolean.FALSE) { target.mapKeyConvert = null; } } } { Boolean mapKeyColumnShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.mapKeyColumn!= null), (rightObject.mapKeyColumn!= null)); if (mapKeyColumnShouldBeMergedAndSet == Boolean.TRUE) { MapKeyColumn lhsMapKeyColumn; lhsMapKeyColumn = leftObject.getMapKeyColumn(); MapKeyColumn rhsMapKeyColumn; rhsMapKeyColumn = rightObject.getMapKeyColumn(); MapKeyColumn mergedMapKeyColumn = ((MapKeyColumn) strategy.merge(LocatorUtils.property(leftLocator, "mapKeyColumn", lhsMapKeyColumn), LocatorUtils.property(rightLocator, "mapKeyColumn", rhsMapKeyColumn), lhsMapKeyColumn, rhsMapKeyColumn, (leftObject.mapKeyColumn!= null), (rightObject.mapKeyColumn!= null))); target.setMapKeyColumn(mergedMapKeyColumn); } else { if (mapKeyColumnShouldBeMergedAndSet == Boolean.FALSE) { target.mapKeyColumn = null; } } } { Boolean mapKeyJoinColumnShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, ((leftObject.mapKeyJoinColumn!= null)&&(!leftObject.mapKeyJoinColumn.isEmpty())), ((rightObject.mapKeyJoinColumn!= null)&&(!rightObject.mapKeyJoinColumn.isEmpty()))); if (mapKeyJoinColumnShouldBeMergedAndSet == Boolean.TRUE) { List lhsMapKeyJoinColumn; lhsMapKeyJoinColumn = (((leftObject.mapKeyJoinColumn!= null)&&(!leftObject.mapKeyJoinColumn.isEmpty()))?leftObject.getMapKeyJoinColumn():null); List rhsMapKeyJoinColumn; rhsMapKeyJoinColumn = (((rightObject.mapKeyJoinColumn!= null)&&(!rightObject.mapKeyJoinColumn.isEmpty()))?rightObject.getMapKeyJoinColumn():null); List mergedMapKeyJoinColumn = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "mapKeyJoinColumn", lhsMapKeyJoinColumn), LocatorUtils.property(rightLocator, "mapKeyJoinColumn", rhsMapKeyJoinColumn), lhsMapKeyJoinColumn, rhsMapKeyJoinColumn, ((leftObject.mapKeyJoinColumn!= null)&&(!leftObject.mapKeyJoinColumn.isEmpty())), ((rightObject.mapKeyJoinColumn!= null)&&(!rightObject.mapKeyJoinColumn.isEmpty())))); target.mapKeyJoinColumn = null; if (mergedMapKeyJoinColumn!= null) { List uniqueMapKeyJoinColumnl = target.getMapKeyJoinColumn(); uniqueMapKeyJoinColumnl.addAll(mergedMapKeyJoinColumn); } } else { if (mapKeyJoinColumnShouldBeMergedAndSet == Boolean.FALSE) { target.mapKeyJoinColumn = null; } } } { Boolean mapKeyForeignKeyShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.mapKeyForeignKey!= null), (rightObject.mapKeyForeignKey!= null)); if (mapKeyForeignKeyShouldBeMergedAndSet == Boolean.TRUE) { ForeignKey lhsMapKeyForeignKey; lhsMapKeyForeignKey = leftObject.getMapKeyForeignKey(); ForeignKey rhsMapKeyForeignKey; rhsMapKeyForeignKey = rightObject.getMapKeyForeignKey(); ForeignKey mergedMapKeyForeignKey = ((ForeignKey) strategy.merge(LocatorUtils.property(leftLocator, "mapKeyForeignKey", lhsMapKeyForeignKey), LocatorUtils.property(rightLocator, "mapKeyForeignKey", rhsMapKeyForeignKey), lhsMapKeyForeignKey, rhsMapKeyForeignKey, (leftObject.mapKeyForeignKey!= null), (rightObject.mapKeyForeignKey!= null))); target.setMapKeyForeignKey(mergedMapKeyForeignKey); } else { if (mapKeyForeignKeyShouldBeMergedAndSet == Boolean.FALSE) { target.mapKeyForeignKey = null; } } } { Boolean joinTableShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.joinTable!= null), (rightObject.joinTable!= null)); if (joinTableShouldBeMergedAndSet == Boolean.TRUE) { JoinTable lhsJoinTable; lhsJoinTable = leftObject.getJoinTable(); JoinTable rhsJoinTable; rhsJoinTable = rightObject.getJoinTable(); JoinTable mergedJoinTable = ((JoinTable) strategy.merge(LocatorUtils.property(leftLocator, "joinTable", lhsJoinTable), LocatorUtils.property(rightLocator, "joinTable", rhsJoinTable), lhsJoinTable, rhsJoinTable, (leftObject.joinTable!= null), (rightObject.joinTable!= null))); target.setJoinTable(mergedJoinTable); } else { if (joinTableShouldBeMergedAndSet == Boolean.FALSE) { target.joinTable = null; } } } { Boolean joinColumnShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, ((leftObject.joinColumn!= null)&&(!leftObject.joinColumn.isEmpty())), ((rightObject.joinColumn!= null)&&(!rightObject.joinColumn.isEmpty()))); if (joinColumnShouldBeMergedAndSet == Boolean.TRUE) { List lhsJoinColumn; lhsJoinColumn = (((leftObject.joinColumn!= null)&&(!leftObject.joinColumn.isEmpty()))?leftObject.getJoinColumn():null); List rhsJoinColumn; rhsJoinColumn = (((rightObject.joinColumn!= null)&&(!rightObject.joinColumn.isEmpty()))?rightObject.getJoinColumn():null); List mergedJoinColumn = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "joinColumn", lhsJoinColumn), LocatorUtils.property(rightLocator, "joinColumn", rhsJoinColumn), lhsJoinColumn, rhsJoinColumn, ((leftObject.joinColumn!= null)&&(!leftObject.joinColumn.isEmpty())), ((rightObject.joinColumn!= null)&&(!rightObject.joinColumn.isEmpty())))); target.joinColumn = null; if (mergedJoinColumn!= null) { List uniqueJoinColumnl = target.getJoinColumn(); uniqueJoinColumnl.addAll(mergedJoinColumn); } } else { if (joinColumnShouldBeMergedAndSet == Boolean.FALSE) { target.joinColumn = null; } } } { Boolean foreignKeyShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.foreignKey!= null), (rightObject.foreignKey!= null)); if (foreignKeyShouldBeMergedAndSet == Boolean.TRUE) { ForeignKey lhsForeignKey; lhsForeignKey = leftObject.getForeignKey(); ForeignKey rhsForeignKey; rhsForeignKey = rightObject.getForeignKey(); ForeignKey mergedForeignKey = ((ForeignKey) strategy.merge(LocatorUtils.property(leftLocator, "foreignKey", lhsForeignKey), LocatorUtils.property(rightLocator, "foreignKey", rhsForeignKey), lhsForeignKey, rhsForeignKey, (leftObject.foreignKey!= null), (rightObject.foreignKey!= null))); target.setForeignKey(mergedForeignKey); } else { if (foreignKeyShouldBeMergedAndSet == Boolean.FALSE) { target.foreignKey = null; } } } { Boolean cascadeShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.cascade!= null), (rightObject.cascade!= null)); if (cascadeShouldBeMergedAndSet == Boolean.TRUE) { CascadeType lhsCascade; lhsCascade = leftObject.getCascade(); CascadeType rhsCascade; rhsCascade = rightObject.getCascade(); CascadeType mergedCascade = ((CascadeType) strategy.merge(LocatorUtils.property(leftLocator, "cascade", lhsCascade), LocatorUtils.property(rightLocator, "cascade", rhsCascade), lhsCascade, rhsCascade, (leftObject.cascade!= null), (rightObject.cascade!= null))); target.setCascade(mergedCascade); } else { if (cascadeShouldBeMergedAndSet == Boolean.FALSE) { target.cascade = null; } } } { Boolean nameShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.name!= null), (rightObject.name!= null)); if (nameShouldBeMergedAndSet == Boolean.TRUE) { String lhsName; lhsName = leftObject.getName(); String rhsName; rhsName = rightObject.getName(); String mergedName = ((String) strategy.merge(LocatorUtils.property(leftLocator, "name", lhsName), LocatorUtils.property(rightLocator, "name", rhsName), lhsName, rhsName, (leftObject.name!= null), (rightObject.name!= null))); target.setName(mergedName); } else { if (nameShouldBeMergedAndSet == Boolean.FALSE) { target.name = null; } } } { Boolean targetEntityShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.targetEntity!= null), (rightObject.targetEntity!= null)); if (targetEntityShouldBeMergedAndSet == Boolean.TRUE) { String lhsTargetEntity; lhsTargetEntity = leftObject.getTargetEntity(); String rhsTargetEntity; rhsTargetEntity = rightObject.getTargetEntity(); String mergedTargetEntity = ((String) strategy.merge(LocatorUtils.property(leftLocator, "targetEntity", lhsTargetEntity), LocatorUtils.property(rightLocator, "targetEntity", rhsTargetEntity), lhsTargetEntity, rhsTargetEntity, (leftObject.targetEntity!= null), (rightObject.targetEntity!= null))); target.setTargetEntity(mergedTargetEntity); } else { if (targetEntityShouldBeMergedAndSet == Boolean.FALSE) { target.targetEntity = null; } } } { Boolean fetchShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.fetch!= null), (rightObject.fetch!= null)); if (fetchShouldBeMergedAndSet == Boolean.TRUE) { String lhsFetch; lhsFetch = leftObject.getFetch(); String rhsFetch; rhsFetch = rightObject.getFetch(); String mergedFetch = ((String) strategy.merge(LocatorUtils.property(leftLocator, "fetch", lhsFetch), LocatorUtils.property(rightLocator, "fetch", rhsFetch), lhsFetch, rhsFetch, (leftObject.fetch!= null), (rightObject.fetch!= null))); target.setFetch(mergedFetch); } else { if (fetchShouldBeMergedAndSet == Boolean.FALSE) { target.fetch = null; } } } { Boolean accessShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.access!= null), (rightObject.access!= null)); if (accessShouldBeMergedAndSet == Boolean.TRUE) { String lhsAccess; lhsAccess = leftObject.getAccess(); String rhsAccess; rhsAccess = rightObject.getAccess(); String mergedAccess = ((String) strategy.merge(LocatorUtils.property(leftLocator, "access", lhsAccess), LocatorUtils.property(rightLocator, "access", rhsAccess), lhsAccess, rhsAccess, (leftObject.access!= null), (rightObject.access!= null))); target.setAccess(mergedAccess); } else { if (accessShouldBeMergedAndSet == Boolean.FALSE) { target.access = null; } } } { Boolean mappedByShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.mappedBy!= null), (rightObject.mappedBy!= null)); if (mappedByShouldBeMergedAndSet == Boolean.TRUE) { String lhsMappedBy; lhsMappedBy = leftObject.getMappedBy(); String rhsMappedBy; rhsMappedBy = rightObject.getMappedBy(); String mergedMappedBy = ((String) strategy.merge(LocatorUtils.property(leftLocator, "mappedBy", lhsMappedBy), LocatorUtils.property(rightLocator, "mappedBy", rhsMappedBy), lhsMappedBy, rhsMappedBy, (leftObject.mappedBy!= null), (rightObject.mappedBy!= null))); target.setMappedBy(mergedMappedBy); } else { if (mappedByShouldBeMergedAndSet == Boolean.FALSE) { target.mappedBy = null; } } } { Boolean orphanRemovalShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.orphanRemoval!= null), (rightObject.orphanRemoval!= null)); if (orphanRemovalShouldBeMergedAndSet == Boolean.TRUE) { Boolean lhsOrphanRemoval; lhsOrphanRemoval = leftObject.isOrphanRemoval(); Boolean rhsOrphanRemoval; rhsOrphanRemoval = rightObject.isOrphanRemoval(); Boolean mergedOrphanRemoval = ((Boolean) strategy.merge(LocatorUtils.property(leftLocator, "orphanRemoval", lhsOrphanRemoval), LocatorUtils.property(rightLocator, "orphanRemoval", rhsOrphanRemoval), lhsOrphanRemoval, rhsOrphanRemoval, (leftObject.orphanRemoval!= null), (rightObject.orphanRemoval!= null))); target.setOrphanRemoval(mergedOrphanRemoval); } else { if (orphanRemovalShouldBeMergedAndSet == Boolean.FALSE) { target.orphanRemoval = null; } } } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy