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.hmsinc.epicenter.model.provider.Facility.java
/** * @return the patients//from w w w . j a v a 2s. c o m */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "facility") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Set<Patient> getPatients() { return patients; }
From source file:com.doculibre.constellio.entities.RecordCollection.java
@OneToMany(mappedBy = "recordCollection", cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, orphanRemoval = true) public Set<CredentialGroup> getCredentialGroups() { return credentialGroups; }
From source file:org.orcid.persistence.jpa.entities.ProfileEntity.java
/** * @return the externalIdentifiers/* ww w. j av a 2s . c o m*/ */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "owner", orphanRemoval = true) @Sort(type = SortType.NATURAL) public Set<ExternalIdentifierEntity> getExternalIdentifiers() { return externalIdentifiers; }
From source file:com.doculibre.constellio.entities.IndexField.java
@ManyToMany(cascade = { CascadeType.ALL }) @JoinTable(name = "IndexField_LabelledValues", joinColumns = { @JoinColumn(name = "indexField_id") }, inverseJoinColumns = { @JoinColumn(name = "label_id") }) public Set<I18NLabel> getLabelledValues() { return this.labelledValues; }
From source file:uk.nhs.cfh.dsp.snomed.objectmodel.impl.SnomedConceptImpl.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, targetEntity = SnomedRelationshipImpl.class) @JoinTable(name = "OPTIONAL_RELATIONSHIPS", joinColumns = @JoinColumn(name = "concept_id"), inverseJoinColumns = @JoinColumn(name = "optional_relationships_id")) public Collection<SnomedRelationship> getOptionalRelationships() { return optionalRelationships; }
From source file:velo.entity.Resource.java
@OneToMany(mappedBy = "resource", fetch = FetchType.LAZY, cascade = { CascadeType.ALL }) @OrderBy("startDate DESC") public Set<ReconcileProcessSummary> getReconcileProcessSummaries() { return ReconcileProcessSummaries; }
From source file:com.medigy.persist.model.person.Person.java
@OneToMany(cascade = CascadeType.ALL, mappedBy = "patient", fetch = FetchType.LAZY) public Set<HealthCareEncounter> getHealthCareEncounters() { return healthCareEncounters; }
From source file:edu.ku.brc.specify.datamodel.SpecifyUser.java
/** * @return the taskSemaphores//from ww w. j a v a2s.co m */ @OneToMany(mappedBy = "owner") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<SpTaskSemaphore> getTaskSemaphores() { return taskSemaphores; }
From source file:com.denimgroup.threadfix.data.entities.Application.java
@OneToMany(mappedBy = "application", cascade = CascadeType.ALL) @JsonIgnore/*from w w w . jav a 2 s .c om*/ public List<AccessControlApplicationMap> getAccessControlApplicationMaps() { return accessControlApplicationMaps; }
From source file:com.doculibre.constellio.entities.RecordCollection.java
@OneToMany(mappedBy = "recordCollection", cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, orphanRemoval = true) public Set<Categorization> getCategorizations() { return categorizations; }