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:com.jasperreports.hrdb.Employee.java

@JsonIgnoreProperties({ "employeeByManagerid", "employeesForManagerid" })
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "employeeByManagerid")
public List<Employee> getEmployeesForManagerid() {
    return this.employeesForManagerid;
}

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

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, targetEntity = SnomedDescriptionImpl.class)
@JoinTable(name = "CONCEPT_DESCRIPTIONS", joinColumns = @JoinColumn(name = "concept_id"), inverseJoinColumns = @JoinColumn(name = "description_id"))
public Collection<SnomedDescription> getDescriptions() {
    return descriptions;
}

From source file:org.opencustomer.db.vo.crm.PersonVO.java

@OneToMany(mappedBy = "person", cascade = CascadeType.ALL)
@Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<AddressVO> getAddresses() {
    return addresses;
}

From source file:gov.nih.nci.caarray.domain.project.Project.java

/**
 * Gets all the files.//from ww w  . ja  va  2  s  . c o m
 *
 * @return the files
 */
@OneToMany(mappedBy = "project", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@Sort(type = SortType.NATURAL)
@Filter(name = Experiment.SECURITY_FILTER_NAME, condition = Experiment.FILES_FILTER)
public SortedSet<CaArrayFile> getFiles() {
    return this.files;
}

From source file:onl.netfishers.netshot.device.DeviceGroup.java

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "deviceGroup")
public List<CheckGroupSoftwareTask> getCheckSoftwareComplianceTasks() {
    return checkSoftwareComplianceTasks;
}

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

/**
 * @return the members/*from   w  w  w. j  a va 2  s .  co m*/
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "division")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<Agent> getMembers() {
    return members;
}

From source file:com.hmsinc.epicenter.model.workflow.Event.java

/**
 * @return the disposition/*from  ww  w  . j  a v a 2 s . c  o m*/
 */
@ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY)
@JoinColumn(name = "ID_EVENT_DISPOSITION", unique = false, nullable = false, insertable = true, updatable = true)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@ForeignKey(name = "FK_EVENT_3")
public EventDisposition getDisposition() {
    return disposition;
}

From source file:no.abmu.questionnaire.domain.metadata.FieldImpl.java

@OneToMany(cascade = CascadeType.ALL, targetEntity = FieldValidator.class, fetch = FetchType.EAGER)
@JoinColumn(name = "FK_FIELD_ID")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
//    @Fetch(FetchMode.SUBSELECT)
public Set getValidators() {
    return validators;
}

From source file:com.aistor.modules.cms.entity.Article.java

@OneToOne(mappedBy = "article", cascade = CascadeType.ALL, optional = false)
@IndexedEmbedded
@Valid
public ArticleData getArticleData() {
    return articleData;
}

From source file:com.hmsinc.epicenter.model.surveillance.Anomaly.java

/**
 * @return the set//from  www . ja v a2s  .  com
 */
@ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY)
@JoinColumn(name = "ID_SURVEILLANCE_SET", unique = false, nullable = false, insertable = true, updatable = true)
@org.hibernate.annotations.ForeignKey(name = "FK_ANOMALY_4")
public SurveillanceSet getSet() {
    return set;
}