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:com.hmsinc.epicenter.model.geography.State.java
/** * @return the zipcodes/*w w w . j a va 2 s . c o m*/ */ @XmlTransient @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "state") @Where(clause = "type = 'Z'") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "com.hmsinc.epicenter.model.GeographyCache") @Sort(type = SortType.NATURAL) public Set<Zipcode> getZipcodes() { return zipcodes; }
From source file:com.hmsinc.epicenter.model.workflow.WorkflowTransition.java
/** * @return the fromState//from www . j a v a 2 s .c om */ @ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_STATE_FROM", unique = false, nullable = false, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_WORKFLOW_TRANSITION_1") public WorkflowState getFromState() { return fromState; }
From source file:com.benfante.minimark.po.Assessment.java
@OneToMany(mappedBy = "assessment", cascade = CascadeType.ALL) @Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN) @OrderBy("ordering ASC") public List<AssessmentQuestion> getQuestions() { return questions; }
From source file:no.abmu.questionnaire.domain.data.QuestionnaireData.java
/** * getReportDataList./*from w w w . ja v a2s .c om*/ * * @hibernate.map table="FINANCE_REPORT_DATA_LIST" cascade="all" lazy="false" * @hibernate.key column="FK_SUBREPDATA_ID" * @hibernate.index column="code" type="string" * @hibernate.one-to-many class="no.abmu.finances.domain.SubReportDataList" lazy="false" * @hibernate.cache usage="nonstrict-read-write" * @hibernate.collection-key column="FK_SUBREPDATA_ID" * @hibernate.collection-index column="code" * type="string" * @hibernate.collection-one-to-many class="no.abmu.finances.domain.SubReportDataList" * @ hibernate.collection-cache usage="nonstrict-read-write" */ @OneToMany(targetEntity = SubSchemaDataList.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinTable(name = "QUESTIONNAIRE_SUBSCHEMA_DATA_LIST", schema = DbSchemaNameConst.QUESTIONNAIRE_DB_SCHEMA_NAME) @MapKey(columns = { @Column(name = "key") }, targetElement = String.class) public Map<String, SubSchemaDataList> getSchemaDataListMap() { return schemaDataListMap; }
From source file:uk.nhs.cfh.dsp.snomed.expression.model.impl.AbstractExpressionWithFocusConcepts.java
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, targetEntity = SnomedConceptImpl.class) // @JoinTable( // name="FOCUS_CONCEPTS", // joinColumns = @JoinColumn( name="uuid"), // inverseJoinColumns = @JoinColumn( name="focus_concept_id")) public Collection<SnomedConcept> getFocusConcepts() { return focusConcepts; }
From source file:com.evolveum.midpoint.repo.sql.data.common.any.RAssignmentExtension.java
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true) @Cascade({ org.hibernate.annotations.CascadeType.ALL }) public Set<RAExtReference> getReferences() { if (references == null) { references = new HashSet<>(); }/*from w ww . java2 s . c o m*/ return references; }
From source file:com.hmsinc.epicenter.model.workflow.Attachment.java
/** * @return the owner/*w w w . j a v a 2s . c o m*/ */ @ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_USER", unique = false, nullable = false, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_ATTACHMENT_1") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public EpiCenterUser getOwner() { return owner; }
From source file:com.anite.zebra.hivemind.om.defs.ZebraProcessDefinition.java
@ManyToOne(cascade = { CascadeType.ALL }, targetEntity = ZebraTaskDefinition.class) @JoinColumn(name = "firstTaskDefId") public ITaskDefinition getFirstTask() { return this.firstTask; }
From source file:com.doculibre.constellio.entities.ConnectorInstance.java
@OneToMany(mappedBy = "connectorInstance", cascade = { CascadeType.ALL }, orphanRemoval = true) public Set<ConnectorInstanceMeta> getConnectorInstanceMetas() { return connectorInstanceMetas; }
From source file:com.hmsinc.epicenter.model.analysis.DataType.java
/** * @return the targets//w w w. java2s.c o m */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "dataType") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Set<ClassificationTarget> getTargets() { return targets; }