List of usage examples for org.hibernate.annotations CascadeType MERGE
CascadeType MERGE
To view the source code for org.hibernate.annotations CascadeType MERGE.
Click Source Link
From source file:edu.ku.brc.specify.datamodel.Appraisal.java
License:Open Source License
/** * @return the accession/*from ww w .j a v a 2 s. c o m*/ */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) @JoinColumn(name = "AccessionID", unique = false, nullable = true, insertable = true, updatable = true) public Accession getAccession() { return accession; }
From source file:edu.ku.brc.specify.datamodel.CollectingEvent.java
License:Open Source License
/** * //w w w .ja v a 2 s .c om */ @OneToMany(mappedBy = "collectingEvent") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) public Set<CollectionObject> getCollectionObjects() { return this.collectionObjects; }
From source file:edu.ku.brc.specify.datamodel.CollectingTrip.java
License:Open Source License
/** * //from w ww. j a v a 2 s. co m */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "collectingTrip") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) public Set<CollectingEvent> getCollectingEvents() { return this.collectingEvents; }
From source file:edu.ku.brc.specify.datamodel.CollectionObject.java
License:Open Source License
/** * *///from ww w . ja va2 s. com @ManyToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "collectionObjects") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) public Set<Project> getProjects() { return this.projects; }
From source file:edu.ku.brc.specify.datamodel.CollectionObject.java
License:Open Source License
/** * Container//from w w w. j a v a2s . c om */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) @JoinColumn(name = "ContainerID", unique = false, nullable = true, insertable = true, updatable = true) public Container getContainer() { return this.container; }
From source file:edu.ku.brc.specify.datamodel.CollectionObject.java
License:Open Source License
/** * * Preparation, Container// w w w .java2s . c om */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) @JoinColumn(name = "ContainerOwnerID", unique = false, nullable = true, insertable = true, updatable = true) public Container getContainerOwner() { return this.containerOwner; }
From source file:edu.ku.brc.specify.datamodel.CollectionRelType.java
License:Open Source License
/** * @return the leftSideCollection/*from ww w .j a v a 2 s . c o m*/ */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) @JoinColumn(name = "LeftSideCollectionID", unique = false, nullable = true, insertable = true, updatable = true) public Collection getLeftSideCollection() { return leftSideCollection; }
From source file:edu.ku.brc.specify.datamodel.CollectionRelType.java
License:Open Source License
/** * @return the rightSideCollection/* w w w . jav a2s. c om*/ */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) @JoinColumn(name = "RightSideCollectionID", unique = false, nullable = true, insertable = true, updatable = true) public Collection getRightSideCollection() { return rightSideCollection; }
From source file:edu.ku.brc.specify.datamodel.CommonNameTx.java
License:Open Source License
/** * @return the citations//from w ww. j a v a 2s . co m */ @OneToMany(mappedBy = "commonNameTx") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) public Set<CommonNameTxCitation> getCitations() { return citations; }
From source file:edu.ku.brc.specify.datamodel.Container.java
License:Open Source License
/** * *//*from ww w . jav a 2 s . c om*/ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "container") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) public Set<CollectionObject> getCollectionObjects() { return this.collectionObjects; }