本文整理汇总了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;
}