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.opencustomer.db.vo.crm.CompanyVO.java
@OneToMany(mappedBy = "company", cascade = CascadeType.ALL) @Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<AddressVO> getAddresses() { return addresses; }
From source file:com.infinities.keystone4j.model.identity.User.java
@OneToMany(fetch = FetchType.LAZY, mappedBy = "user", cascade = CascadeType.ALL) @JsonView(Views.All.class) public Set<UserGroupMembership> getUserGroupMemberships() { return userGroupMemberships; }
From source file:com.anite.zebra.hivemind.om.state.ZebraProcessInstance.java
/** * @return Returns the fOEs./*from w ww . jav a 2 s . c o m*/ */ @OneToMany() @Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<ZebraFOE> getFOEs() { return this.fOES; }
From source file:no.abmu.questionnarie.domain.Post.java
/** * @hibernate.many-to-one column="FK_POSTPERIOD_ID" * class="no.abmu.finances.domain.PostPeriod" * cascade="save-update"// w ww. java2s . c o m * @hibernate.column name="FK_POSTPERIOD_ID" * index="rdoum_FK_POSTPERIOD_ID_idx" */ @ManyToOne(cascade = { CascadeType.ALL }) @ForeignKey(name = "FK_POSTPERIOD_ID") // @Cache(usage = CacheConcurrencyStrategy.READ_ONLY) public PostPeriod getPeriod() { return period; }
From source file:com.dhenton9000.birt.persistence.entities.Offices.java
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @JoinColumn(name = "OFFICECODE", nullable = false) @JsonManagedReference//from w ww. j a v a 2 s . c om public Set<Employees> getEmployees() { return employees; }
From source file:gov.nih.nci.protexpress.domain.experiment.Experiment.java
/** * Gets the experimentRuns./* ww w. j a va2 s . c o m*/ * * @return the experimentRuns. */ @OneToMany(mappedBy = "experiment", fetch = FetchType.LAZY, cascade = CascadeType.ALL) public List<ExperimentRun> getExperimentRuns() { return this.experimentRuns; }
From source file:com.hmsinc.epicenter.model.analysis.classify.Classifier.java
/** * @return the targets/* w w w . j a va 2s .co m*/ */ @Fetch(FetchMode.JOIN) @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER, mappedBy = "classifier") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public List<ClassificationTarget> getTargets() { return targets; }
From source file:com.hmsinc.epicenter.model.workflow.WorkflowState.java
/** * @return the transitions/* w ww . j a v a 2 s .co m*/ */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "fromState") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) @Sort(type = SortType.NATURAL) public SortedSet<WorkflowTransition> getTransitions() { return transitions; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.MaterialPE.java
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "entity") @Cascade(value = org.hibernate.annotations.CascadeType.DELETE_ORPHAN) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) @IndexedEmbedded(prefix = SearchFieldConstants.PREFIX_PROPERTIES) @Fetch(FetchMode.SUBSELECT)/*from w w w . j a v a 2 s . c o m*/ private Set<MaterialPropertyPE> getMaterialProperties() { return properties; }
From source file:onl.netfishers.netshot.device.DeviceGroup.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "deviceGroup") public List<RunDeviceGroupScriptTask> getRunDeviceGroupScriptTasks() { return runDeviceGroupScriptTasks; }