當前位置: 首頁>>代碼示例>>Java>>正文


Java Cascade類代碼示例

本文整理匯總了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;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:9,代碼來源:MeasurementOrFact.java

示例2: getEnvModifiers

import org.hibernate.annotations.Cascade; //導入依賴的package包/類
@Cascade(CascadeType.ALL)
@OneToMany(mappedBy = "taskData")
@OnDelete(action = OnDeleteAction.CASCADE)
public List<EnvironmentModifierData> getEnvModifiers() {
    return envModifiers;
}
 
開發者ID:ow2-proactive,項目名稱:scheduling,代碼行數:7,代碼來源:TaskData.java

示例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;
}
 
開發者ID:RBGKew,項目名稱:powop,代碼行數:9,代碼來源:Identification.java

示例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;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:9,代碼來源:SequenciaDefaultAny.java

示例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;
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:10,代碼來源:RAuditEventRecord.java

示例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;
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:10,代碼來源:RAuditEventRecord.java

示例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;
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:10,代碼來源:RAuditEventRecord.java

示例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;
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:10,代碼來源:RAuditEventRecord.java

示例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;
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:9,代碼來源:RAssignmentExtension.java

示例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;
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:9,代碼來源:RAssignmentExtension.java

示例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;
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:9,代碼來源:RAssignmentExtension.java

示例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;
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:9,代碼來源:RAssignmentExtension.java

示例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;
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:9,代碼來源:RAssignmentExtension.java

示例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;
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:9,代碼來源:RAssignmentExtension.java

示例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;
}
 
開發者ID:Pardus-Engerek,項目名稱:engerek,代碼行數:10,代碼來源:RConnector.java


注:本文中的org.hibernate.annotations.Cascade類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。