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.eclipse.jubula.client.core.model.ProjectPO.java
/** * /*from w w w .jav a2 s . c o m*/ * @return Returns the execObjCont. */ @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY) @JoinColumn(name = "EXECOBJ_CONT", unique = true) private ExecObjContPO getHbmExecObjCont() { return m_execObjCont; }
From source file:uk.nhs.cfh.dsp.snomed.expression.model.impl.AbstractExpressionWithFocusConcepts.java
/** * Gets the relationship expressions.//from w w w . j a va 2s. c o m * * @return the relationship expressions */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, targetEntity = SnomedRoleGroupImpl.class) @JoinTable(name = "EFC_RELATIONSHIP_EXPRESSIONS", joinColumns = @JoinColumn(name = "uuid"), inverseJoinColumns = @JoinColumn(name = "rel_exp_uuid")) public Collection<SnomedRelationshipPropertyExpression> getRelationshipExpressions() { return relationshipExpressions; }
From source file:onl.netfishers.netshot.device.DeviceGroup.java
/** * Gets the snapshot tasks./*from w ww .ja va 2s . c om*/ * * @return the snapshot tasks */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "deviceGroup") public List<TakeGroupSnapshotTask> getSnapshotTasks() { return snapshotTasks; }
From source file:com.doculibre.constellio.entities.Record.java
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true) public ParsedContent getParsedContent() { return parsedContent; }
From source file:uk.nhs.cfh.dsp.srth.information.model.impl.om.ehr.EHRImpl.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, targetEntity = AbstractBoundClinicalEntry.class) @JoinTable(name = "EHR_ENTRIES", joinColumns = @JoinColumn(name = PATIENT_ID), inverseJoinColumns = @JoinColumn(name = "entry_id")) @ForeignKey(name = "FK_EHR_ENT", inverseName = "FK_ENT_EHR") public Set<BoundClinicalEntry> getEntries() { return entries; }
From source file:org.jboss.pressgang.ccms.model.LanguageImage.java
@ManyToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL) @JoinColumn(name = "LocaleID") @NotNull(message = "{languageimage.locale.notBlank}") @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED) public Locale getLocale() { return locale; }
From source file:uk.nhs.cfh.dsp.snomed.objectmodel.impl.SnomedConceptImpl.java
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, targetEntity = SnomedRelationshipImpl.class) @Column(nullable = true)/* w ww. j a va2 s . c o m*/ @JoinTable(name = "CONCEPT_SOURCE_RELATIONSHIPS", joinColumns = @JoinColumn(name = "concept_id"), inverseJoinColumns = @JoinColumn(name = "source_relationships_id")) public Collection<SnomedRelationship> getSourceRelationships() { return sourceRelationships; }
From source file:org.eclipse.jubula.client.core.model.NodePO.java
/** * //from www . j a v a 2s . c om * Access method for the m_nodeList property. * only to use for Persistence (JPA / EclipseLink) * * @return the current value of the m_nodeList property */ @ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, targetEntity = NodePO.class) @JoinTable(name = "NODE_LIST", joinColumns = @JoinColumn(name = "PARENT"), inverseJoinColumns = @JoinColumn(name = "CHILD")) @OrderColumn(name = "IDX") @BatchFetch(value = BatchFetchType.JOIN) List<INodePO> getHbmNodeList() { return m_nodeList; }
From source file:org.eclipse.jubula.client.core.model.ProjectPO.java
/** * //from w ww .ja v a 2 s . c o m * @return Returns the AutCont. */ @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY) @JoinColumn(name = "AUT_CONT", unique = true) private AUTContPO getHbmAutCont() { return m_autCont; }
From source file:com.evolveum.midpoint.repo.sql.data.common.container.RAssignment.java
@org.hibernate.annotations.ForeignKey(name = "none") @com.evolveum.midpoint.repo.sql.query.definition.Any(jaxbNameLocalPart = "extension") @OneToOne(optional = true, orphanRemoval = true) @Cascade({ org.hibernate.annotations.CascadeType.ALL }) @JoinColumns(value = { @JoinColumn(name = "extOid", referencedColumnName = "owner_owner_oid"), @JoinColumn(name = "extId", referencedColumnName = "owner_id") }, foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public RAssignmentExtension getExtension() { return extension; }