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:net.shopxx.entity.Shipping.java
@Valid @NotEmpty/* w w w. ja va2 s. c o m*/ @OneToMany(mappedBy = "shipping", fetch = FetchType.LAZY, cascade = CascadeType.ALL) public List<ShippingItem> getShippingItems() { return shippingItems; }
From source file:org.eclipse.jubula.client.core.model.TDManagerPO.java
/** * Only use this method for internal purposes!</b> * //from ww w .j a v a2s. com * @return Returns the dataTable. */ @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, targetEntity = DataSetPO.class, fetch = FetchType.EAGER) @OrderColumn(name = "IDX") @BatchFetch(value = BatchFetchType.JOIN) public List<IDataSetPO> getDataTable() { return m_dataTable; }
From source file:org.apromore.dao.model.ProcessModelVersion.java
@OneToOne(cascade = CascadeType.ALL) @JoinColumn(name = "canonicalId", referencedColumnName = "id") public Canonical getCanonicalDocument() { return this.canonicalDocument; }
From source file:org.tsm.concharto.model.Event.java
@OneToMany(mappedBy = "event", cascade = { CascadeType.ALL }) public List<Flag> getFlags() { return flags; }
From source file:com.hmsinc.epicenter.model.workflow.Event.java
/** * @return the geography/* w w w . j a v a 2 s. c o m*/ */ @ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_GEOGRAPHY", unique = false, nullable = false, insertable = true, updatable = true) @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) @ForeignKey(name = "FK_EVENT_2") public Geography getGeography() { return geography; }
From source file:no.abmu.questionnaire.domain.metadata.FieldImpl.java
@ManyToOne(cascade = CascadeType.ALL) public FieldPeriod getPeriod() { return period; }
From source file:no.abmu.questionnarie.domain.Post.java
/** * @hibernate.set lazy="false"// w ww . ja v a 2 s. co m * cascade="all" * table="FINANCE_POST_VALIDATOR" * @hibernate.key column="FK_POST_ID" * @hibernate.key-column name="FK_POST_ID" * not-null="false" * index="Post_ValdiatorId_idx" * @hibernate.one-to-many class="no.abmu.finances.domain.PostValidator" * @hibernate.cache usage="nonstrict-read-write" * @hibernate.collection-key column="FK_POST_ID" * @hibernate.collection-key-column name="FK_POST_ID" * not-null="false" * index="Post_ValdiatorId_idx" * @hibernate.collection-one-to-many class="no.abmu.finances.domain.PostValidator" */ @OneToMany(cascade = { CascadeType.ALL }) @JoinColumn(name = "post_fk") // @Cache(usage = CacheConcurrencyStrategy.READ_ONLY) // @ForeignKey(name = "FK_POST_PVALIDATOR_ID", inverseName = "ID") // @JoinTable( // schema = "QUESTIONNARIE" // ) public Set<PostValidator> getValidators() { return validators; }
From source file:org.openhie.openempi.model.PersonMatch.java
@OneToMany(mappedBy = "personMatch", cascade = CascadeType.ALL) @OrderBy("columnMatchInformationId") public List<ColumnMatchInformation> getColumnMatchInformation() { return columnMatchInformation; }
From source file:com.dhenton9000.birt.persistence.entities.Orders.java
/** * @return the orderDetails// w w w . j ava 2 s.co m */ @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @JoinColumn(name = "ORDERNUMBER", nullable = false) @JsonManagedReference public Set<OrderDetails> getOrderDetails() { return orderDetails; }
From source file:com.green.modules.cms.entity.Article.java
@OneToOne(mappedBy = "article", cascade = CascadeType.ALL, optional = false) @Valid @IndexedEmbedded public ArticleData getArticleData() { return articleData; }