List of usage examples for javax.persistence CascadeType ALL
CascadeType ALL
To view the source code for javax.persistence CascadeType ALL.
Click Source Link
From source file:com.doculibre.constellio.entities.IndexField.java
/** * Copy fields that copy content from the current index field. * /*from www . ja v a 2 s. c om*/ * @return */ @OneToMany(mappedBy = "indexFieldSource", cascade = { CascadeType.ALL }, orphanRemoval = true) public Set<CopyField> getCopyFieldsSource() { return copyFieldsSource; }
From source file:org.orcid.persistence.jpa.entities.ProfileEntity.java
/** * @return the works//from ww w . j a va 2 s .c o m */ @OneToMany(mappedBy = PROFILE, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true) @Sort(type = SortType.COMPARATOR, comparator = WorkEntityDisplayIndexComparatorDesc.class) public SortedSet<WorkEntity> getWorks() { return works; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.SamplePE.java
@Override @OneToMany(fetch = FetchType.LAZY, mappedBy = "sampleParentInternal", cascade = CascadeType.ALL) @Cascade(value = org.hibernate.annotations.CascadeType.DELETE_ORPHAN) @IndexedEmbedded(prefix = SearchFieldConstants.PREFIX_ATTACHMENT) @Fetch(FetchMode.SUBSELECT)/*from ww w. j a v a 2 s .c o m*/ protected Set<AttachmentPE> getInternalAttachments() { return attachments; }
From source file:org.eclipse.jubula.client.core.model.ObjectMappingPO.java
/** * //from w ww . j av a2s. c om * {@inheritDoc} */ @OneToOne(targetEntity = ObjectMappingCategoryPO.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER, optional = false) @BatchFetch(value = BatchFetchType.JOIN) public IObjectMappingCategoryPO getMappedCategory() { clearMappingsCache(); // may be changed outside of class return m_mappedCategory; }
From source file:edu.ku.brc.specify.datamodel.SpecifyUser.java
/** * @return the spQuerys//from w w w . j av a2 s. c o m */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "specifyUser") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<SpQuery> getSpQuerys() { return spQuerys; }
From source file:org.eclipse.jubula.client.core.model.ProjectPO.java
/** * /*from www . j a va2 s . c o m*/ * @return Returns the test data cube container. */ @OneToOne(cascade = CascadeType.ALL, targetEntity = TestDataCategoryPO.class, fetch = FetchType.LAZY) @JoinColumn(name = "TDC_CONT", unique = true) private ITestDataCategoryPO getHbmTestDataCubeContPO() { return m_testdatacubecont; }
From source file:com.medigy.persist.model.person.Person.java
@OneToMany(cascade = CascadeType.ALL, mappedBy = "person", fetch = FetchType.LAZY) public Set<Language> getLanguages() { return languages; }
From source file:org.opennms.netmgt.model.OnmsHwEntity.java
/** * Gets the parent./*ww w.j a v a 2 s . co m*/ * * @return the parent */ @XmlTransient @ManyToOne(cascade = { CascadeType.ALL }, optional = true) @JoinColumn(name = "parentId") public OnmsHwEntity getParent() { return m_parent; }
From source file:org.orcid.persistence.jpa.entities.ProfileEntity.java
/** * @return the peer reviews/*from w w w .j ava2 s . c om*/ * */ @OneToMany(mappedBy = PROFILE, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true) @Sort(type = SortType.COMPARATOR, comparator = PeerReviewEntityDisplayIndexComparatorDesc.class) public SortedSet<PeerReviewEntity> getPeerReviews() { return peerReviews; }
From source file:com.doculibre.constellio.entities.RecordCollection.java
@OrderBy(value = "id") @OneToMany(mappedBy = "recordCollection", cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, orphanRemoval = true) public Set<FeaturedLink> getFeaturedLinks() { return featuredLinks; }