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.projectforge.access.GroupTaskAccessDO.java
/** * Get the history entries for this object. * //from w ww .j ava 2s . c om */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true) @JoinColumn(name = "group_task_access_fk", insertable = true, updatable = true) public Set<AccessEntryDO> getAccessEntries() { return this.accessEntries; }
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<RAExtDate> getDates() { if (dates == null) { dates = new HashSet<>(); }//from w ww . j av a 2 s .c o m return dates; }
From source file:ca.mcgill.cs.swevo.qualyzer.model.Project.java
/** * @return the codes/*from w ww .jav a2s. com*/ */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER) @JoinColumn(name = "project_persistenceid", nullable = false) @OrderColumn(name = "index") public List<Code> getCodes() { return fCodes; }
From source file:no.abmu.questionnarie.domain.MainReportData.java
@ManyToOne(cascade = { CascadeType.ALL }) @ForeignKey(name = "FK_ORGU_MAPPING_ID") public ReportDataOrgUnitMapping getOrgUnitMapping() { return orgUnitMapping; }
From source file:org.eclipse.jubula.client.core.model.TestDataCubePO.java
/** * //from ww w . ja v a 2s.co m * @return parameters instance */ @OneToMany(targetEntity = ParamDescriptionPO.class, fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true) @JoinColumn(name = "PARAM_NODE") @OrderColumn(name = "IDX_PARAM_NODE") @BatchFetch(value = BatchFetchType.JOIN) protected List<IParamDescriptionPO> getHbmParameterList() { return m_hbmParameterList; }
From source file:org.dspace.orm.entity.Bitstream.java
@ManyToMany(fetch = FetchType.LAZY, cascade = { CascadeType.ALL }) @JoinTable(name = "bundle2bitstream", joinColumns = { @JoinColumn(name = "bitstream_id") }, inverseJoinColumns = { @JoinColumn(name = "bundle_id") }) public List<Bundle> getBundles() { return bundles; }
From source file:no.abmu.questionnarie.domain.MainReportSchema.java
/** * @hibernate.set lazy="false"/*from w ww. ja v a 2s. c o m*/ * cascade="save-update" * table="FINANCE_REPORT_SCHEMA_ACCOUNT" * @hibernate.key column="FK_REPORT_SCHEMA_ID" * @hibernate.many-to-many class="no.abmu.finances.domain.Account" * column="FK_ACCOUNT_ID" * @hibernate.collection-key column="FK_REPORT_SCHEMA_ID" * @hibernate.collection-many-to-many class="no.abmu.finances.domain.Account" * column="FK_ACCOUNT_ID" */ // @ManyToMany(cascade = {CascadeType.ALL}) // @ForeignKey(name = "FK_REPORT_SCHEMA_ID", inverseName = "FK_ACCOUNT_ID") // @JoinTable( //// schema = "QUESTIONNARIE" // ) @ManyToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER, //TODO mappedBy = "mainReportSchemas") // @Cache(usage = CacheConcurrencyStrategy.READ_ONLY) public Set<Account> getAccounts() { return super.getAccounts(); }
From source file:com.vmware.thinapp.workpool.model.WorkpoolModel.java
@OneToMany(cascade = CascadeType.ALL, mappedBy = "workpool", orphanRemoval = true) public Set<InstanceModel> getInstances() { return instances; }
From source file:uk.nhs.cfh.dsp.snomed.expression.model.impl.AbstractExpressionImpl.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, targetEntity = AbstractExpressionImpl.class) @JoinTable(name = "CHILD_EXPRESSIONS", joinColumns = @JoinColumn(name = "uuid"), inverseJoinColumns = @JoinColumn(name = "child_expression_id")) public Collection<Expression> getChildExpressions() { return childExpressions; }
From source file:edu.scripps.fl.pubchem.db.PCAssayResult.java
@ManyToOne(optional = true, fetch = FetchType.LAZY, cascade = { CascadeType.ALL }) public PCAssayColumn getPrimaryColumn() { return primaryColumn; }