List of usage examples for org.hibernate.annotations CascadeType LOCK
CascadeType LOCK
To view the source code for org.hibernate.annotations CascadeType LOCK.
Click Source Link
From source file:edu.ku.brc.specify.datamodel.Appraisal.java
License:Open Source License
/** * @return the accession/*from w ww . j a va 2 s . com*/ */ @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
/** * *///from w ww .ja va 2 s. c o m //@ManyToOne(cascade = {javax.persistence.CascadeType.ALL}, fetch = FetchType.LAZY) //@org.hibernate.annotations.Cascade( { org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @Cascade({ CascadeType.LOCK }) @JoinColumn(name = "PaleoContextID", unique = false, nullable = true, insertable = true, updatable = true) public PaleoContext getPaleoContext() { return this.paleoContext; }
From source file:edu.ku.brc.specify.datamodel.CollectingEvent.java
License:Open Source License
/** * // www .j a va 2 s . com */ @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 w w . ja v a 2 s. c o 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
/** * * BiologicalObject (Bird, Fish, etc) *///from ww w . ja v a 2 s. com @ManyToOne(cascade = {}, fetch = FetchType.LAZY) //@Cascade( { CascadeType.MERGE, CascadeType.LOCK }) @Cascade({ CascadeType.LOCK }) @JoinColumn(name = "CollectingEventID", unique = false, nullable = true, insertable = true, updatable = true) public CollectingEvent getCollectingEvent() { return this.collectingEvent; }
From source file:edu.ku.brc.specify.datamodel.CollectionObject.java
License:Open Source License
/** * *//*ww w. j a v a 2 s. c o m*/ @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 av a 2 s . c o m */ @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 ww .jav a 2 s .co m*/ */ @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/*www . j a va 2 s. c om*/ */ @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 . j a v a 2 s . 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; }