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

jakarta.xml.ns.persistence.orm.ElementCollection 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 ElementCollection {
 *           Class targetClass() default void.class;
 *           FetchType fetch() default LAZY;
 *         }
 * 
 * 

Java class for element-collection complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *           
 *           
 *         
 *         
 *           
 *           
 *             
 *             
 *               
 *               
 *               
 *                 
 *                 
 *               
 *             
 *             
 *               
 *               
 *                 
 *                 
 *               
 *             
 *           
 *         
 *         
 *           
 *             
 *             
 *               
 *               
 *               
 *             
 *           
 *           
 *             
 *             
 *             
 *           
 *         
 *         
 *       
 *       
 *       
 *       
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "element-collection", propOrder = { "orderBy", "orderColumn", "mapKey", "mapKeyClass", "mapKeyTemporal", "mapKeyEnumerated", "mapKeyAttributeOverride", "mapKeyConvert", "mapKeyColumn", "mapKeyJoinColumn", "mapKeyForeignKey", "column", "temporal", "enumerated", "lob", "attributeOverride", "associationOverride", "convert", "collectionTable" }) public class ElementCollection 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; protected Column column; @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String temporal; @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String enumerated; protected Lob lob; @XmlElement(name = "attribute-override") protected List attributeOverride; @XmlElement(name = "association-override") protected List associationOverride; protected List convert; @XmlElement(name = "collection-table") protected CollectionTable collectionTable; @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "target-class") protected String targetClass; @XmlAttribute(name = "fetch") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String fetch; @XmlAttribute(name = "access") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String access; /** * 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 column property. * * @return * possible object is * {@link Column } * */ public Column getColumn() { return column; } /** * Sets the value of the column property. * * @param value * allowed object is * {@link Column } * */ public void setColumn(Column value) { this.column = value; } /** * Gets the value of the temporal property. * * @return * possible object is * {@link String } * */ public String getTemporal() { return temporal; } /** * Sets the value of the temporal property. * * @param value * allowed object is * {@link String } * */ public void setTemporal(String value) { this.temporal = value; } /** * Gets the value of the enumerated property. * * @return * possible object is * {@link String } * */ public String getEnumerated() { return enumerated; } /** * Sets the value of the enumerated property. * * @param value * allowed object is * {@link String } * */ public void setEnumerated(String value) { this.enumerated = value; } /** * Gets the value of the lob property. * * @return * possible object is * {@link Lob } * */ public Lob getLob() { return lob; } /** * Sets the value of the lob property. * * @param value * allowed object is * {@link Lob } * */ public void setLob(Lob value) { this.lob = value; } /** * Gets the value of the attributeOverride 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 attributeOverride property.

* *

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

*
     * getAttributeOverride().add(newItem);
     * 
* * *

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

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

* *

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

*
     * getAssociationOverride().add(newItem);
     * 
* * *

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

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

* *

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

*
     * getConvert().add(newItem);
     * 
* * *

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

* * * @return * The value of the convert property. */ public List getConvert() { if (convert == null) { convert = new ArrayList<>(); } return this.convert; } /** * Gets the value of the collectionTable property. * * @return * possible object is * {@link CollectionTable } * */ public CollectionTable getCollectionTable() { return collectionTable; } /** * Sets the value of the collectionTable property. * * @param value * allowed object is * {@link CollectionTable } * */ public void setCollectionTable(CollectionTable value) { this.collectionTable = 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 targetClass property. * * @return * possible object is * {@link String } * */ public String getTargetClass() { return targetClass; } /** * Sets the value of the targetClass property. * * @param value * allowed object is * {@link String } * */ public void setTargetClass(String value) { this.targetClass = 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; } @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 ElementCollection that = ((ElementCollection) 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; } } { Column lhsColumn; lhsColumn = this.getColumn(); Column rhsColumn; rhsColumn = that.getColumn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "column", lhsColumn), LocatorUtils.property(thatLocator, "column", rhsColumn), lhsColumn, rhsColumn, (this.column!= null), (that.column!= null))) { return false; } } { String lhsTemporal; lhsTemporal = this.getTemporal(); String rhsTemporal; rhsTemporal = that.getTemporal(); if (!strategy.equals(LocatorUtils.property(thisLocator, "temporal", lhsTemporal), LocatorUtils.property(thatLocator, "temporal", rhsTemporal), lhsTemporal, rhsTemporal, (this.temporal!= null), (that.temporal!= null))) { return false; } } { String lhsEnumerated; lhsEnumerated = this.getEnumerated(); String rhsEnumerated; rhsEnumerated = that.getEnumerated(); if (!strategy.equals(LocatorUtils.property(thisLocator, "enumerated", lhsEnumerated), LocatorUtils.property(thatLocator, "enumerated", rhsEnumerated), lhsEnumerated, rhsEnumerated, (this.enumerated!= null), (that.enumerated!= null))) { return false; } } { Lob lhsLob; lhsLob = this.getLob(); Lob rhsLob; rhsLob = that.getLob(); if (!strategy.equals(LocatorUtils.property(thisLocator, "lob", lhsLob), LocatorUtils.property(thatLocator, "lob", rhsLob), lhsLob, rhsLob, (this.lob!= null), (that.lob!= null))) { return false; } } { List lhsAttributeOverride; lhsAttributeOverride = (((this.attributeOverride!= null)&&(!this.attributeOverride.isEmpty()))?this.getAttributeOverride():null); List rhsAttributeOverride; rhsAttributeOverride = (((that.attributeOverride!= null)&&(!that.attributeOverride.isEmpty()))?that.getAttributeOverride():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "attributeOverride", lhsAttributeOverride), LocatorUtils.property(thatLocator, "attributeOverride", rhsAttributeOverride), lhsAttributeOverride, rhsAttributeOverride, ((this.attributeOverride!= null)&&(!this.attributeOverride.isEmpty())), ((that.attributeOverride!= null)&&(!that.attributeOverride.isEmpty())))) { return false; } } { List lhsAssociationOverride; lhsAssociationOverride = (((this.associationOverride!= null)&&(!this.associationOverride.isEmpty()))?this.getAssociationOverride():null); List rhsAssociationOverride; rhsAssociationOverride = (((that.associationOverride!= null)&&(!that.associationOverride.isEmpty()))?that.getAssociationOverride():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "associationOverride", lhsAssociationOverride), LocatorUtils.property(thatLocator, "associationOverride", rhsAssociationOverride), lhsAssociationOverride, rhsAssociationOverride, ((this.associationOverride!= null)&&(!this.associationOverride.isEmpty())), ((that.associationOverride!= null)&&(!that.associationOverride.isEmpty())))) { return false; } } { List lhsConvert; lhsConvert = (((this.convert!= null)&&(!this.convert.isEmpty()))?this.getConvert():null); List rhsConvert; rhsConvert = (((that.convert!= null)&&(!that.convert.isEmpty()))?that.getConvert():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "convert", lhsConvert), LocatorUtils.property(thatLocator, "convert", rhsConvert), lhsConvert, rhsConvert, ((this.convert!= null)&&(!this.convert.isEmpty())), ((that.convert!= null)&&(!that.convert.isEmpty())))) { return false; } } { CollectionTable lhsCollectionTable; lhsCollectionTable = this.getCollectionTable(); CollectionTable rhsCollectionTable; rhsCollectionTable = that.getCollectionTable(); if (!strategy.equals(LocatorUtils.property(thisLocator, "collectionTable", lhsCollectionTable), LocatorUtils.property(thatLocator, "collectionTable", rhsCollectionTable), lhsCollectionTable, rhsCollectionTable, (this.collectionTable!= null), (that.collectionTable!= 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 lhsTargetClass; lhsTargetClass = this.getTargetClass(); String rhsTargetClass; rhsTargetClass = that.getTargetClass(); if (!strategy.equals(LocatorUtils.property(thisLocator, "targetClass", lhsTargetClass), LocatorUtils.property(thatLocator, "targetClass", rhsTargetClass), lhsTargetClass, rhsTargetClass, (this.targetClass!= null), (that.targetClass!= 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; } } 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)); } { Column theColumn; theColumn = this.getColumn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "column", theColumn), currentHashCode, theColumn, (this.column!= null)); } { String theTemporal; theTemporal = this.getTemporal(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "temporal", theTemporal), currentHashCode, theTemporal, (this.temporal!= null)); } { String theEnumerated; theEnumerated = this.getEnumerated(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "enumerated", theEnumerated), currentHashCode, theEnumerated, (this.enumerated!= null)); } { Lob theLob; theLob = this.getLob(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lob", theLob), currentHashCode, theLob, (this.lob!= null)); } { List theAttributeOverride; theAttributeOverride = (((this.attributeOverride!= null)&&(!this.attributeOverride.isEmpty()))?this.getAttributeOverride():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attributeOverride", theAttributeOverride), currentHashCode, theAttributeOverride, ((this.attributeOverride!= null)&&(!this.attributeOverride.isEmpty()))); } { List theAssociationOverride; theAssociationOverride = (((this.associationOverride!= null)&&(!this.associationOverride.isEmpty()))?this.getAssociationOverride():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "associationOverride", theAssociationOverride), currentHashCode, theAssociationOverride, ((this.associationOverride!= null)&&(!this.associationOverride.isEmpty()))); } { List theConvert; theConvert = (((this.convert!= null)&&(!this.convert.isEmpty()))?this.getConvert():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "convert", theConvert), currentHashCode, theConvert, ((this.convert!= null)&&(!this.convert.isEmpty()))); } { CollectionTable theCollectionTable; theCollectionTable = this.getCollectionTable(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "collectionTable", theCollectionTable), currentHashCode, theCollectionTable, (this.collectionTable!= null)); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { String theTargetClass; theTargetClass = this.getTargetClass(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetClass", theTargetClass), currentHashCode, theTargetClass, (this.targetClass!= 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)); } 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 ElementCollection) { final ElementCollection copy = ((ElementCollection) 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 columnShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.column!= null)); if (columnShouldBeCopiedAndSet == Boolean.TRUE) { Column sourceColumn; sourceColumn = this.getColumn(); Column copyColumn = ((Column) strategy.copy(LocatorUtils.property(locator, "column", sourceColumn), sourceColumn, (this.column!= null))); copy.setColumn(copyColumn); } else { if (columnShouldBeCopiedAndSet == Boolean.FALSE) { copy.column = null; } } } { Boolean temporalShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.temporal!= null)); if (temporalShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTemporal; sourceTemporal = this.getTemporal(); String copyTemporal = ((String) strategy.copy(LocatorUtils.property(locator, "temporal", sourceTemporal), sourceTemporal, (this.temporal!= null))); copy.setTemporal(copyTemporal); } else { if (temporalShouldBeCopiedAndSet == Boolean.FALSE) { copy.temporal = null; } } } { Boolean enumeratedShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.enumerated!= null)); if (enumeratedShouldBeCopiedAndSet == Boolean.TRUE) { String sourceEnumerated; sourceEnumerated = this.getEnumerated(); String copyEnumerated = ((String) strategy.copy(LocatorUtils.property(locator, "enumerated", sourceEnumerated), sourceEnumerated, (this.enumerated!= null))); copy.setEnumerated(copyEnumerated); } else { if (enumeratedShouldBeCopiedAndSet == Boolean.FALSE) { copy.enumerated = null; } } } { Boolean lobShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.lob!= null)); if (lobShouldBeCopiedAndSet == Boolean.TRUE) { Lob sourceLob; sourceLob = this.getLob(); Lob copyLob = ((Lob) strategy.copy(LocatorUtils.property(locator, "lob", sourceLob), sourceLob, (this.lob!= null))); copy.setLob(copyLob); } else { if (lobShouldBeCopiedAndSet == Boolean.FALSE) { copy.lob = null; } } } { Boolean attributeOverrideShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.attributeOverride!= null)&&(!this.attributeOverride.isEmpty()))); if (attributeOverrideShouldBeCopiedAndSet == Boolean.TRUE) { List sourceAttributeOverride; sourceAttributeOverride = (((this.attributeOverride!= null)&&(!this.attributeOverride.isEmpty()))?this.getAttributeOverride():null); @SuppressWarnings("unchecked") List copyAttributeOverride = ((List ) strategy.copy(LocatorUtils.property(locator, "attributeOverride", sourceAttributeOverride), sourceAttributeOverride, ((this.attributeOverride!= null)&&(!this.attributeOverride.isEmpty())))); copy.attributeOverride = null; if (copyAttributeOverride!= null) { List uniqueAttributeOverridel = copy.getAttributeOverride(); uniqueAttributeOverridel.addAll(copyAttributeOverride); } } else { if (attributeOverrideShouldBeCopiedAndSet == Boolean.FALSE) { copy.attributeOverride = null; } } } { Boolean associationOverrideShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.associationOverride!= null)&&(!this.associationOverride.isEmpty()))); if (associationOverrideShouldBeCopiedAndSet == Boolean.TRUE) { List sourceAssociationOverride; sourceAssociationOverride = (((this.associationOverride!= null)&&(!this.associationOverride.isEmpty()))?this.getAssociationOverride():null); @SuppressWarnings("unchecked") List copyAssociationOverride = ((List ) strategy.copy(LocatorUtils.property(locator, "associationOverride", sourceAssociationOverride), sourceAssociationOverride, ((this.associationOverride!= null)&&(!this.associationOverride.isEmpty())))); copy.associationOverride = null; if (copyAssociationOverride!= null) { List uniqueAssociationOverridel = copy.getAssociationOverride(); uniqueAssociationOverridel.addAll(copyAssociationOverride); } } else { if (associationOverrideShouldBeCopiedAndSet == Boolean.FALSE) { copy.associationOverride = null; } } } { Boolean convertShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.convert!= null)&&(!this.convert.isEmpty()))); if (convertShouldBeCopiedAndSet == Boolean.TRUE) { List sourceConvert; sourceConvert = (((this.convert!= null)&&(!this.convert.isEmpty()))?this.getConvert():null); @SuppressWarnings("unchecked") List copyConvert = ((List ) strategy.copy(LocatorUtils.property(locator, "convert", sourceConvert), sourceConvert, ((this.convert!= null)&&(!this.convert.isEmpty())))); copy.convert = null; if (copyConvert!= null) { List uniqueConvertl = copy.getConvert(); uniqueConvertl.addAll(copyConvert); } } else { if (convertShouldBeCopiedAndSet == Boolean.FALSE) { copy.convert = null; } } } { Boolean collectionTableShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.collectionTable!= null)); if (collectionTableShouldBeCopiedAndSet == Boolean.TRUE) { CollectionTable sourceCollectionTable; sourceCollectionTable = this.getCollectionTable(); CollectionTable copyCollectionTable = ((CollectionTable) strategy.copy(LocatorUtils.property(locator, "collectionTable", sourceCollectionTable), sourceCollectionTable, (this.collectionTable!= null))); copy.setCollectionTable(copyCollectionTable); } else { if (collectionTableShouldBeCopiedAndSet == Boolean.FALSE) { copy.collectionTable = 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 targetClassShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.targetClass!= null)); if (targetClassShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTargetClass; sourceTargetClass = this.getTargetClass(); String copyTargetClass = ((String) strategy.copy(LocatorUtils.property(locator, "targetClass", sourceTargetClass), sourceTargetClass, (this.targetClass!= null))); copy.setTargetClass(copyTargetClass); } else { if (targetClassShouldBeCopiedAndSet == Boolean.FALSE) { copy.targetClass = 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; } } } } return draftCopy; } @Override public Object createNewInstance() { return new ElementCollection(); } @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 ElementCollection) { final ElementCollection target = this; final ElementCollection leftObject = ((ElementCollection) left); final ElementCollection rightObject = ((ElementCollection) 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 columnShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.column!= null), (rightObject.column!= null)); if (columnShouldBeMergedAndSet == Boolean.TRUE) { Column lhsColumn; lhsColumn = leftObject.getColumn(); Column rhsColumn; rhsColumn = rightObject.getColumn(); Column mergedColumn = ((Column) strategy.merge(LocatorUtils.property(leftLocator, "column", lhsColumn), LocatorUtils.property(rightLocator, "column", rhsColumn), lhsColumn, rhsColumn, (leftObject.column!= null), (rightObject.column!= null))); target.setColumn(mergedColumn); } else { if (columnShouldBeMergedAndSet == Boolean.FALSE) { target.column = null; } } } { Boolean temporalShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.temporal!= null), (rightObject.temporal!= null)); if (temporalShouldBeMergedAndSet == Boolean.TRUE) { String lhsTemporal; lhsTemporal = leftObject.getTemporal(); String rhsTemporal; rhsTemporal = rightObject.getTemporal(); String mergedTemporal = ((String) strategy.merge(LocatorUtils.property(leftLocator, "temporal", lhsTemporal), LocatorUtils.property(rightLocator, "temporal", rhsTemporal), lhsTemporal, rhsTemporal, (leftObject.temporal!= null), (rightObject.temporal!= null))); target.setTemporal(mergedTemporal); } else { if (temporalShouldBeMergedAndSet == Boolean.FALSE) { target.temporal = null; } } } { Boolean enumeratedShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.enumerated!= null), (rightObject.enumerated!= null)); if (enumeratedShouldBeMergedAndSet == Boolean.TRUE) { String lhsEnumerated; lhsEnumerated = leftObject.getEnumerated(); String rhsEnumerated; rhsEnumerated = rightObject.getEnumerated(); String mergedEnumerated = ((String) strategy.merge(LocatorUtils.property(leftLocator, "enumerated", lhsEnumerated), LocatorUtils.property(rightLocator, "enumerated", rhsEnumerated), lhsEnumerated, rhsEnumerated, (leftObject.enumerated!= null), (rightObject.enumerated!= null))); target.setEnumerated(mergedEnumerated); } else { if (enumeratedShouldBeMergedAndSet == Boolean.FALSE) { target.enumerated = null; } } } { Boolean lobShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.lob!= null), (rightObject.lob!= null)); if (lobShouldBeMergedAndSet == Boolean.TRUE) { Lob lhsLob; lhsLob = leftObject.getLob(); Lob rhsLob; rhsLob = rightObject.getLob(); Lob mergedLob = ((Lob) strategy.merge(LocatorUtils.property(leftLocator, "lob", lhsLob), LocatorUtils.property(rightLocator, "lob", rhsLob), lhsLob, rhsLob, (leftObject.lob!= null), (rightObject.lob!= null))); target.setLob(mergedLob); } else { if (lobShouldBeMergedAndSet == Boolean.FALSE) { target.lob = null; } } } { Boolean attributeOverrideShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, ((leftObject.attributeOverride!= null)&&(!leftObject.attributeOverride.isEmpty())), ((rightObject.attributeOverride!= null)&&(!rightObject.attributeOverride.isEmpty()))); if (attributeOverrideShouldBeMergedAndSet == Boolean.TRUE) { List lhsAttributeOverride; lhsAttributeOverride = (((leftObject.attributeOverride!= null)&&(!leftObject.attributeOverride.isEmpty()))?leftObject.getAttributeOverride():null); List rhsAttributeOverride; rhsAttributeOverride = (((rightObject.attributeOverride!= null)&&(!rightObject.attributeOverride.isEmpty()))?rightObject.getAttributeOverride():null); List mergedAttributeOverride = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "attributeOverride", lhsAttributeOverride), LocatorUtils.property(rightLocator, "attributeOverride", rhsAttributeOverride), lhsAttributeOverride, rhsAttributeOverride, ((leftObject.attributeOverride!= null)&&(!leftObject.attributeOverride.isEmpty())), ((rightObject.attributeOverride!= null)&&(!rightObject.attributeOverride.isEmpty())))); target.attributeOverride = null; if (mergedAttributeOverride!= null) { List uniqueAttributeOverridel = target.getAttributeOverride(); uniqueAttributeOverridel.addAll(mergedAttributeOverride); } } else { if (attributeOverrideShouldBeMergedAndSet == Boolean.FALSE) { target.attributeOverride = null; } } } { Boolean associationOverrideShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, ((leftObject.associationOverride!= null)&&(!leftObject.associationOverride.isEmpty())), ((rightObject.associationOverride!= null)&&(!rightObject.associationOverride.isEmpty()))); if (associationOverrideShouldBeMergedAndSet == Boolean.TRUE) { List lhsAssociationOverride; lhsAssociationOverride = (((leftObject.associationOverride!= null)&&(!leftObject.associationOverride.isEmpty()))?leftObject.getAssociationOverride():null); List rhsAssociationOverride; rhsAssociationOverride = (((rightObject.associationOverride!= null)&&(!rightObject.associationOverride.isEmpty()))?rightObject.getAssociationOverride():null); List mergedAssociationOverride = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "associationOverride", lhsAssociationOverride), LocatorUtils.property(rightLocator, "associationOverride", rhsAssociationOverride), lhsAssociationOverride, rhsAssociationOverride, ((leftObject.associationOverride!= null)&&(!leftObject.associationOverride.isEmpty())), ((rightObject.associationOverride!= null)&&(!rightObject.associationOverride.isEmpty())))); target.associationOverride = null; if (mergedAssociationOverride!= null) { List uniqueAssociationOverridel = target.getAssociationOverride(); uniqueAssociationOverridel.addAll(mergedAssociationOverride); } } else { if (associationOverrideShouldBeMergedAndSet == Boolean.FALSE) { target.associationOverride = null; } } } { Boolean convertShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, ((leftObject.convert!= null)&&(!leftObject.convert.isEmpty())), ((rightObject.convert!= null)&&(!rightObject.convert.isEmpty()))); if (convertShouldBeMergedAndSet == Boolean.TRUE) { List lhsConvert; lhsConvert = (((leftObject.convert!= null)&&(!leftObject.convert.isEmpty()))?leftObject.getConvert():null); List rhsConvert; rhsConvert = (((rightObject.convert!= null)&&(!rightObject.convert.isEmpty()))?rightObject.getConvert():null); List mergedConvert = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "convert", lhsConvert), LocatorUtils.property(rightLocator, "convert", rhsConvert), lhsConvert, rhsConvert, ((leftObject.convert!= null)&&(!leftObject.convert.isEmpty())), ((rightObject.convert!= null)&&(!rightObject.convert.isEmpty())))); target.convert = null; if (mergedConvert!= null) { List uniqueConvertl = target.getConvert(); uniqueConvertl.addAll(mergedConvert); } } else { if (convertShouldBeMergedAndSet == Boolean.FALSE) { target.convert = null; } } } { Boolean collectionTableShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.collectionTable!= null), (rightObject.collectionTable!= null)); if (collectionTableShouldBeMergedAndSet == Boolean.TRUE) { CollectionTable lhsCollectionTable; lhsCollectionTable = leftObject.getCollectionTable(); CollectionTable rhsCollectionTable; rhsCollectionTable = rightObject.getCollectionTable(); CollectionTable mergedCollectionTable = ((CollectionTable) strategy.merge(LocatorUtils.property(leftLocator, "collectionTable", lhsCollectionTable), LocatorUtils.property(rightLocator, "collectionTable", rhsCollectionTable), lhsCollectionTable, rhsCollectionTable, (leftObject.collectionTable!= null), (rightObject.collectionTable!= null))); target.setCollectionTable(mergedCollectionTable); } else { if (collectionTableShouldBeMergedAndSet == Boolean.FALSE) { target.collectionTable = 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 targetClassShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.targetClass!= null), (rightObject.targetClass!= null)); if (targetClassShouldBeMergedAndSet == Boolean.TRUE) { String lhsTargetClass; lhsTargetClass = leftObject.getTargetClass(); String rhsTargetClass; rhsTargetClass = rightObject.getTargetClass(); String mergedTargetClass = ((String) strategy.merge(LocatorUtils.property(leftLocator, "targetClass", lhsTargetClass), LocatorUtils.property(rightLocator, "targetClass", rhsTargetClass), lhsTargetClass, rhsTargetClass, (leftObject.targetClass!= null), (rightObject.targetClass!= null))); target.setTargetClass(mergedTargetClass); } else { if (targetClassShouldBeMergedAndSet == Boolean.FALSE) { target.targetClass = 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; } } } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy