本文整理匯總了Java中org.hibernate.annotations.Cascade類的典型用法代碼示例。如果您正苦於以下問題:Java Cascade類的具體用法?Java Cascade怎麽用?Java Cascade使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Cascade類屬於org.hibernate.annotations包,在下文中一共展示了Cascade類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getAnnotations
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'MeasurementOrFact'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
return annotations;
}
示例2: getEnvModifiers
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@Cascade(CascadeType.ALL)
@OneToMany(mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
public List<EnvironmentModifierData> getEnvModifiers() {
return envModifiers;
}
示例3: getAnnotations
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@Override
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Identification'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
public Set<Annotation> getAnnotations() {
return annotations;
}
示例4: getExpedientTipus
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@SuppressWarnings("deprecation")
@ManyToOne(optional=true)
@JoinColumn(name="expedient_tipus")
@ForeignKey(name="hel_exptipus_seqdefany_fk")
@Cascade({CascadeType.DELETE_ORPHAN})
public ExpedientTipus getExpedientTipus() {
return expedientTipus;
}
示例5: getDeltas
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@ForeignKey(name = "fk_audit_delta")
@OneToMany(mappedBy = "record", orphanRemoval = true)
@Cascade({ org.hibernate.annotations.CascadeType.ALL })
public Set<RObjectDeltaOperation> getDeltas() {
if (deltas == null) {
deltas = new HashSet<>();
}
return deltas;
}
示例6: getChangedItems
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@ForeignKey(name = "fk_audit_item")
@OneToMany(mappedBy = "record", orphanRemoval = true)
@Cascade({ org.hibernate.annotations.CascadeType.ALL })
public Set<RAuditItem> getChangedItems() {
if (changedItems == null) {
changedItems = new HashSet<>();
}
return changedItems;
}
示例7: getPropertyValues
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@ForeignKey(name = "fk_audit_prop_value")
@OneToMany(mappedBy = "record", orphanRemoval = true)
@Cascade({ org.hibernate.annotations.CascadeType.ALL })
public Set<RAuditPropertyValue> getPropertyValues() {
if (propertyValues == null) {
propertyValues = new HashSet<>();
}
return propertyValues;
}
示例8: getReferenceValues
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@ForeignKey(name = "fk_audit_ref_value")
@OneToMany(mappedBy = "record", orphanRemoval = true)
@Cascade({ org.hibernate.annotations.CascadeType.ALL })
public Set<RAuditReferenceValue> getReferenceValues() {
if (referenceValues == null) {
referenceValues = new HashSet<>();
}
return referenceValues;
}
示例9: getBooleans
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true)
@Cascade({org.hibernate.annotations.CascadeType.ALL})
public Set<RAExtBoolean> getBooleans() {
if (booleans == null) {
booleans = new HashSet<>();
}
return booleans;
}
示例10: getLongs
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true)
@Cascade({org.hibernate.annotations.CascadeType.ALL})
public Set<RAExtLong> getLongs() {
if (longs == null) {
longs = new HashSet<>();
}
return longs;
}
示例11: getStrings
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true)
@Cascade({org.hibernate.annotations.CascadeType.ALL})
public Set<RAExtString> getStrings() {
if (strings == null) {
strings = new HashSet<>();
}
return strings;
}
示例12: getDates
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true)
@Cascade({org.hibernate.annotations.CascadeType.ALL})
public Set<RAExtDate> getDates() {
if (dates == null) {
dates = new HashSet<>();
}
return dates;
}
示例13: getReferences
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true)
@Cascade({org.hibernate.annotations.CascadeType.ALL})
public Set<RAExtReference> getReferences() {
if (references == null) {
references = new HashSet<>();
}
return references;
}
示例14: getPolys
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@OneToMany(mappedBy = RAExtValue.ANY_CONTAINER, orphanRemoval = true)
@Cascade({org.hibernate.annotations.CascadeType.ALL})
public Set<RAExtPolyString> getPolys() {
if (polys == null) {
polys = new HashSet<>();
}
return polys;
}
示例15: getTargetSystemType
import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@ElementCollection
@ForeignKey(name = "fk_connector_target_system")
@CollectionTable(name = "m_connector_target_system", joinColumns = {
@JoinColumn(name = "connector_oid", referencedColumnName = "oid")
})
@Cascade({org.hibernate.annotations.CascadeType.ALL})
public Set<String> getTargetSystemType() {
return targetSystemType;
}