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:org.eclipse.jubula.client.core.model.ProjectPO.java
/** * This method is intended for use by the persistence layer and should do * nothing other than return the properties. * //from www . jav a2 s . c o m * @return Returns the project properties. */ @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "PROJECT_PROPERTIES", unique = true) public ProjectPropertiesPO getProperties() { return m_projectProperties; }
From source file:com.doculibre.constellio.entities.RecordCollection.java
@OneToMany(mappedBy = "ownerCollection", cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, orphanRemoval = true) public Set<CollectionFederation> getIncludedCollectionFederations() { return includedCollectionFederations; }
From source file:gov.nih.nci.firebird.data.AbstractRegistrationForm.java
/** * @return the signedPdf/*w w w . j a v a 2 s . c om*/ */ @ManyToOne @Cascade(org.hibernate.annotations.CascadeType.ALL) @JoinColumn(name = "signed_pdf_id") @ForeignKey(name = "registration_form_signed_pdf_fkey") public FirebirdFile getSignedPdf() { return signedPdf; }
From source file:org.projectforge.business.teamcal.event.model.TeamEventDO.java
/** * @return the attendees/*from www . j a v a 2 s.c o m*/ */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "team_event_fk") public Set<TeamEventAttendeeDO> getAttendees() { return attendees; }
From source file:com.hmsinc.epicenter.model.permission.Organization.java
/** * @return the investigations/* w w w . j av a 2 s . c o m*/ */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "organization") public Set<Investigation> getInvestigations() { return investigations; }
From source file:org.orcid.persistence.jpa.entities.ProfileEntity.java
/** * @return the affiliations/*w w w. j av a2 s . c om*/ */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = PROFILE, orphanRemoval = true) @Sort(type = SortType.NATURAL) public SortedSet<OrgAffiliationRelationEntity> getOrgAffiliationRelations() { return orgAffiliationRelations; }
From source file:com.doculibre.constellio.entities.Record.java
@OneToMany(mappedBy = "record", cascade = { CascadeType.ALL }, fetch = FetchType.EAGER, orphanRemoval = true) public Set<RecordTag> getRecordTags() { return recordTags; }
From source file:edu.ku.brc.specify.datamodel.SpecifyUser.java
/** * @return - // ww w. j av a2 s. com * Set<AppResource> */ @OneToMany(cascade = { CascadeType.REMOVE }, fetch = FetchType.LAZY, mappedBy = "specifyUser") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<SpAppResource> getSpAppResources() { return this.spAppResources; }
From source file:com.medigy.persist.model.person.Person.java
@OneToMany(cascade = CascadeType.ALL, mappedBy = "person", fetch = FetchType.LAZY) @OrderBy(value = "fromDate asc") public List<MaritalStatus> getMaritalStatuses() { return maritalStatuses; }
From source file:gov.nih.nci.firebird.data.AbstractRegistrationForm.java
/** * @return the flattenedPdf/*w ww. j a v a2 s . c o m*/ */ @ManyToOne @Cascade(org.hibernate.annotations.CascadeType.ALL) @JoinColumn(name = "flattened_pdf_id") @ForeignKey(name = "registration_form_flattened_pdf_fkey") public FirebirdFile getFlattenedPdf() { return flattenedPdf; }