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:uk.nhs.cfh.dsp.snomed.objectmodel.impl.SnomedConceptImpl.java

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

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

/**
 * {@inheritDoc}// w  w  w. j ava  2  s. c o m
 */
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER, targetEntity = CheckConfContPO.class)
@JoinColumn(name = "CHECK_CONF_CONT", unique = true)
public ICheckConfContPO getCheckConfCont() {
    return m_checkConfCont;
}

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

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = PROFILE, orphanRemoval = true)
public Set<EmailEntity> getEmails() {
    return emails;
}

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

/**
 * Retrieve the input files for the application. This is a map of files sent
 * to the remote infrastructure for the execution of the application and/or
 * service. The map key is the file name and the map value is an URL
 * locating the file./*ww  w .  ja  va 2  s  .c  om*/
 * <p>
 * The URL can be local or remote to the service.
 *
 * @return The input files
 */
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@Fetch(FetchMode.SELECT)
public List<TaskFileInput> getInputFiles() {
    return this.inputFiles;
}

From source file:com.hmsinc.epicenter.model.provider.Facility.java

/**
 * @return the notes/*from   w  w w.j  ava2s  .  co m*/
 */
@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "facility")
public Set<Note> getNotes() {
    return notes;
}

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

@OneToMany(mappedBy = "application", cascade = CascadeType.ALL)
@JsonIgnore
public List<ApplicationChannel> getChannelList() {
    return channelList;
}

From source file:edu.ku.brc.specify.datamodel.SpecifyUser.java

/**
 * /*  w w w  . j  a va 2 s . c om*/
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "specifyUser")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<Workbench> getWorkbenches() {
    return this.workbenches;
}

From source file:com.openlegacy.enterprise.ide.eclipse.editors.pages.details.jpa.FieldsJpaManyToOneFieldDetailsPage.java

private static String[] getCascadeItems() {
    List<String> list = new ArrayList<String>();
    list.add(CascadeType.ALL.toString());
    list.add(CascadeType.PERSIST.toString());
    list.add(CascadeType.MERGE.toString());
    list.add(CascadeType.REMOVE.toString());
    list.add(CascadeType.REFRESH.toString());
    list.add(CascadeType.DETACH.toString());
    return list.toArray(new String[] {});
}

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

/**
 * /*from w w w  .  j a  v  a  2 s  . co m*/
 * Access method for the m_nodeList property.
 * only to use for Persistence (JPA / EclipseLink)
 * 
 * @return the current value of the m_parameterList property
 */
@OneToMany(cascade = CascadeType.ALL, targetEntity = ParameterDetailsPO.class, fetch = FetchType.LAZY)
@OrderColumn(name = "IDX")
@JoinColumn(name = "FK_TESTRESULT")
List<IParameterDetailsPO> getHbmParameterList() {
    return m_parameterList;
}

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

@OneToMany(mappedBy = "application", cascade = CascadeType.ALL)
@JsonIgnore//from w w  w  .java  2s . c o  m
public List<ScanQueueTask> getScanQueueTasks() {
    return (this.scanQueueTasks);
}