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.orcid.persistence.jpa.entities.ProfileEntity.java

@OneToMany(mappedBy = "giver", cascade = CascadeType.ALL)
public Set<GivenPermissionToEntity> getGivenPermissionTo() {
    return givenPermissionTo;
}

From source file:net.shopxx.entity.Order.java

@OneToMany(mappedBy = "order", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@OrderBy("type asc")
public List<OrderItem> getOrderItems() {
    return orderItems;
}

From source file:it.infn.ct.futuregateway.apiserver.resources.Task.java

/**
 * Returns the runtime information.//w w w. jav a2s. c  om
 * Runtime information are retrieved by the system during the submission and
 * or execution of the task and can be relevant to the user. E.g. in case of
 * task running a VM the relevant information could be the IP and the
 * credentials of the machine.
 *
 * @return List of runtime
 */
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@Fetch(FetchMode.SELECT)
public List<RuntimeParams> getRuntime() {
    return runtime;
}

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

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "person")
public Set<HealthCareEpisode> getHealthCareEpisodes() {
    return healthCareEpisodes;
}

From source file:com.denimgroup.threadfix.data.entities.Application.java

@OneToMany(mappedBy = "application", cascade = CascadeType.ALL)
@OrderBy("genericSeverity, genericVulnerability")
@JsonIgnore//w w  w  .j a  va  2 s .co  m
public List<Vulnerability> getVulnerabilities() {
    return vulnerabilities;
}

From source file:uk.nhs.cfh.dsp.snomed.objectmodel.impl.SnomedConceptImpl.java

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, targetEntity = SnomedRelationshipImpl.class)
@JoinTable(name = "MANDATORY_RELATIONSHIPS", joinColumns = @JoinColumn(name = "concept_id"), inverseJoinColumns = @JoinColumn(name = "mandatory_relationships_id"))
public Collection<SnomedRelationship> getMandatoryRelationships() {
    return mandatoryRelationships;
}

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

@OneToMany(cascade = CascadeType.ALL, mappedBy = "person", fetch = FetchType.LAZY)
public Set<Ethnicity> getEthnicities() {
    return ethnicities;
}

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

/**
 * @return the grants/*from   w w  w .  j  a v a  2  s.  c  o m*/
 */
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = PROFILE, orphanRemoval = true)
@Sort(type = SortType.COMPARATOR, comparator = ProfileFundingEntityDisplayIndexComparatorDesc.class)
public SortedSet<ProfileFundingEntity> getProfileFunding() {
    return profileFunding;
}

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

@OneToMany(mappedBy = "recordCollection", cascade = {
        CascadeType.ALL }, fetch = FetchType.LAZY, orphanRemoval = true)
public Set<IndexField> getIndexFields() {
    return indexFields;
}

From source file:org.eclipse.jubula.client.core.model.ObjectMappingPO.java

/**
 *      /* w ww  . ja  va2  s .c  om*/
 * @return the profile being used for this object map.
 */
@ManyToOne(targetEntity = ObjectMappingProfilePO.class, optional = false, cascade = CascadeType.ALL)
@JoinColumn(name = "FK_PROFILE")
private IObjectMappingProfilePO getHbmProfile() {
    return m_profile;
}