Example usage for org.hibernate.annotations CascadeType MERGE

List of usage examples for org.hibernate.annotations CascadeType MERGE

Introduction

In this page you can find the example usage for org.hibernate.annotations CascadeType MERGE.

Prototype

CascadeType MERGE

To view the source code for org.hibernate.annotations CascadeType MERGE.

Click Source Link

Document

Corresponds to javax.persistence.CascadeType#MERGE .

Usage

From source file:edu.ku.brc.specify.datamodel.Storage.java

License:Open Source License

@OneToMany(fetch = FetchType.EAGER, mappedBy = "acceptedStorage")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK })
public Set<Storage> getAcceptedChildren() {
    return this.acceptedChildren;
}

From source file:edu.ku.brc.specify.datamodel.Storage.java

License:Open Source License

@OneToMany(mappedBy = "storage")
@Cascade({ CascadeType.MERGE, CascadeType.LOCK })
public Set<Preparation> getPreparations() {
    return this.preparations;
}

From source file:edu.ku.brc.specify.datamodel.Storage.java

License:Open Source License

@OneToMany(mappedBy = "storage")
@Cascade({ CascadeType.MERGE, CascadeType.LOCK })
public Set<Container> getContainers() {
    return this.containers;
}

From source file:edu.ku.brc.specify.datamodel.StorageTreeDefItem.java

License:Open Source License

@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "definitionItem")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.LOCK, CascadeType.MERGE })
public Set<Storage> getTreeEntries() {
    return this.treeEntries;
}

From source file:edu.ku.brc.specify.datamodel.Taxon.java

License:Open Source License

@OneToMany(fetch = FetchType.LAZY, mappedBy = "acceptedTaxon")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK })
public Set<Taxon> getAcceptedChildren() {
    return this.acceptedChildren;
}

From source file:edu.ku.brc.specify.datamodel.Taxon.java

License:Open Source License

/**
 * Returns the set of Taxon objects where this object is the hybridParent1 value.
 * /*from   w  ww. java 2s.  c o  m*/
 * @return the set of Taxon objects where this object is the hybridParent1 value.
 */
@OneToMany(mappedBy = "hybridParent1")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK })
public Set<Taxon> getHybridChildren1() {
    return hybridChildren1;
}

From source file:edu.ku.brc.specify.datamodel.Taxon.java

License:Open Source License

/**
 * Returns the set of Taxon objects where this object is the hybridParent2 value.
 * /*from w w w . j  av  a 2  s .co  m*/
 * @return the set of Taxon objects where this object is the hybridParent2 value.
 */
@OneToMany(mappedBy = "hybridParent2")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK })
public Set<Taxon> getHybridChildren2() {
    return hybridChildren2;
}

From source file:edu.ku.brc.specify.datamodel.Taxon.java

License:Open Source License

@OneToMany(mappedBy = "taxon")
@Cascade({ CascadeType.MERGE, CascadeType.LOCK })
public Set<Determination> getDeterminations() {
    return determinations;
}

From source file:edu.ku.brc.specify.datamodel.Taxon.java

License:Open Source License

/**
 * @return the commonNames/*w  w  w  .j  av a2 s .  c om*/
 */
@OneToMany(mappedBy = "taxon")
@Cascade({ CascadeType.MERGE, CascadeType.LOCK })
public Set<CommonNameTx> getCommonNames() {
    return commonNames;
}

From source file:edu.ku.brc.specify.datamodel.Taxon.java

License:Open Source License

/**
 * @return the collectingEventAttributes
 *//*from   w w w  .ja va 2s. c  o m*/
@OneToMany(mappedBy = "hostTaxon")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK })
public Set<CollectingEventAttribute> getCollectingEventAttributes() {
    return collectingEventAttributes;
}