Example usage for javax.persistence CascadeType ALL

List of usage examples for javax.persistence CascadeType ALL

Introduction

In this page you can find the example usage for javax.persistence CascadeType ALL.

Prototype

CascadeType ALL

To view the source code for javax.persistence CascadeType ALL.

Click Source Link

Document

Cascade all operations

Usage

From source file:org.projectforge.business.teamcal.event.model.TeamEventDO.java

/**
 * @return the attachments/*from   ww w  .  j  a va  2  s  .  c o  m*/
 */
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "team_event_fk2")
public Set<TeamEventAttachmentDO> getAttachments() {
    return attachments;
}

From source file:org.orcid.persistence.jpa.entities.ProfileEntity.java

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = PROFILE)
@Sort(type = SortType.NATURAL)
public SortedSet<OrcidOauth2TokenDetail> getTokenDetails() {
    return tokenDetails;
}

From source file:com.doculibre.constellio.entities.RecordCollection.java

@OneToOne(cascade = { CascadeType.ALL })
public SolrConfig getSolrConfiguration() {
    return solrConfiguration;
}

From source file:com.medigy.persist.model.person.Person.java

@OneToMany(cascade = CascadeType.ALL, mappedBy = "person")
public Set<FeeSchedule> getFeeSchedules() {
    return feeSchedules;
}

From source file:org.openhie.openempi.model.Person.java

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "person")
@XmlElement/*from   w  ww  .  j  av a 2s  .c om*/
public Set<PersonIdentifier> getPersonIdentifiers() {
    return this.personIdentifiers;
}

From source file:org.orcid.persistence.jpa.entities.ProfileEntity.java

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "orcid")
public Set<ProfileEventEntity> getProfileEvents() {
    return profileEvents;
}

From source file:com.doculibre.constellio.entities.RecordCollection.java

@OneToOne(cascade = { CascadeType.ALL })
public CollectionStatsFilter getStatsFilter() {
    return statsFilter;
}

From source file:com.medigy.persist.model.person.Person.java

@OneToMany(mappedBy = "person", cascade = CascadeType.ALL)
public Set<User> getUsers() {
    return users;
}

From source file:com.medigy.persist.model.person.Person.java

@OneToMany(mappedBy = "person", cascade = CascadeType.ALL)
public List<PersonRole> getRoles() {
    return roles;
}

From source file:com.doculibre.constellio.entities.RecordCollection.java

@OneToOne(cascade = { CascadeType.ALL })
public ResultsRelevance getResultsRelevance() {
    return resultsRelevance;
}