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:gov.nih.nci.firebird.data.Protocol.java
/** * @return the Set of Lead Organizations. *///from w w w . ja v a 2 s.c o m @OneToMany(mappedBy = "protocol", fetch = FetchType.LAZY) @Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<ProtocolLeadOrganization> getLeadOrganizations() { return leadOrganizations; }
From source file:edu.harvard.med.screensaver.model.screenresults.ScreenResult.java
/** * Get the ordered set of all {@link DataColumn}s for this screen result. * @return the ordered set of all {@link DataColumn}s for this screen * result.// w w w. j a va 2s . com */ @OneToMany(mappedBy = "screenResult", cascade = { CascadeType.ALL }, orphanRemoval = true) @org.hibernate.annotations.Sort(type = org.hibernate.annotations.SortType.NATURAL) public SortedSet<DataColumn> getDataColumns() { return _dataColumns; }
From source file:uk.nhs.cfh.dsp.snomed.objectmodel.impl.SnomedConceptImpl.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, targetEntity = SnomedRelationshipImpl.class) @JoinTable(name = "DEFINING_RELATIONSHIPS", joinColumns = @JoinColumn(name = "concept_id"), inverseJoinColumns = @JoinColumn(name = "defining_relationships_id")) public Collection<SnomedRelationship> getDefiningRelationships() { return definingRelationships; }
From source file:gov.nih.nci.firebird.data.AbstractRegistration.java
/** * @return the Additional Documents Form *///w w w. j ava 2s.c o m @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY) @JoinColumn(name = "additional_attachments_id") @ForeignKey(name = "registration_additional_attachments_fkey") @Cascade(org.hibernate.annotations.CascadeType.ALL) public AdditionalAttachmentsForm getAdditionalAttachmentsForm() { return additionalAttachmentsForm; }
From source file:org.projectforge.fibu.AuftragDO.java
/** * Get the position entries for this object. *//* www .ja va 2 s . co m*/ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "auftrag") @IndexColumn(name = "number", base = 1) public List<AuftragsPositionDO> getPositionen() { return this.positionen; }
From source file:com.anite.zebra.hivemind.om.state.ZebraProcessInstance.java
/** * @return//from w w w . j a va 2 s . c om */ @OneToMany(fetch = FetchType.LAZY, cascade = { CascadeType.ALL }) public Set<ZebraTaskInstanceHistory> getHistoryInstances() { return this.historyInstances; }
From source file:com.denimgroup.threadfix.data.entities.Application.java
@OneToMany(mappedBy = "application", cascade = CascadeType.ALL) @JsonIgnore public List<ScheduledScan> getScheduledScans() { return scheduledScans; }
From source file:com.doculibre.constellio.entities.IndexField.java
@ManyToMany(cascade = { CascadeType.ALL }) @JoinTable(name = "IndexField_Labels", joinColumns = { @JoinColumn(name = "indexField_id") }, inverseJoinColumns = { @JoinColumn(name = "label_id") }) public Set<I18NLabel> getLabels() { return this.labels; }
From source file:com.medigy.persist.model.person.Person.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "person") public Set<PhysicalCharacteristic> getPhysicalCharacteristics() { return physicalCharacteristics; }
From source file:edu.ku.brc.specify.datamodel.SpecifyUser.java
/** * //from w w w.j a va 2 s . co 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<WorkbenchTemplate> getWorkbenchTemplates() { return this.workbenchTemplates; }