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


Java CascadeType.DELETE屬性代碼示例

本文整理匯總了Java中org.hibernate.annotations.CascadeType.DELETE屬性的典型用法代碼示例。如果您正苦於以下問題:Java CascadeType.DELETE屬性的具體用法?Java CascadeType.DELETE怎麽用?Java CascadeType.DELETE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.hibernate.annotations.CascadeType的用法示例。


在下文中一共展示了CascadeType.DELETE屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getAnnotations

@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,代碼行數:8,代碼來源:MeasurementOrFact.java

示例2: getAnnotations

@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,代碼行數:8,代碼來源:Identification.java

示例3: getAnnotations

/**
 * @return the annotations
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Distribution'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
開發者ID:RBGKew,項目名稱:powop,代碼行數:11,代碼來源:Distribution.java

示例4: getAnnotations

/**
 * @return the annotations
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Identifier'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
開發者ID:RBGKew,項目名稱:powop,代碼行數:11,代碼來源:Identifier.java

示例5: getAnnotations

/**
 * @return the annotations
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Reference'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:11,代碼來源:Reference.java

示例6: getAnnotations

/**
 * @return the annotations
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Concept'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:11,代碼來源:Concept.java

示例7: getComments

/**
 * @return the comments
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "commentPage_id")
@OrderBy("created DESC")
@Where(clause = "commentPage_type = 'Concept'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public List<Comment> getComments() {
	return comments;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:12,代碼來源:Concept.java

示例8: getAnnotations

@Override
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Image'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:9,代碼來源:Image.java

示例9: getResources

/**
 * @return the jobs
 */
@JsonIgnore
@OneToMany(fetch = FetchType.LAZY, mappedBy = "organisation")
@Cascade(CascadeType.DELETE)
@OrderBy("lastHarvested DESC")
public Set<Resource> getResources() {
 return resources;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:10,代碼來源:Organisation.java

示例10: getAnnotations

@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'TypeAndSpecimen'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
開發者ID:RBGKew,項目名稱:powop,代碼行數:8,代碼來源:TypeAndSpecimen.java

示例11: getAnnotations

/**
 * @return the annotations
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Taxon'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:11,代碼來源:Taxon.java

示例12: getTurnsHistoryHasPlacesriskses

@OneToMany(fetch = FetchType.EAGER, mappedBy = "turnsHistory")
@Cascade({ CascadeType.DELETE })
public Set<TurnsHistoryHasPlacesrisks> getTurnsHistoryHasPlacesriskses() {
	return this.turnsHistoryHasPlacesriskses;
}
 
開發者ID:machadolucas,項目名稱:watchout,代碼行數:5,代碼來源:TurnsHistory.java

示例13: getTurnsHistoryHasTransportationriskses

@OneToMany(fetch = FetchType.EAGER, mappedBy = "turnsHistory")
@Cascade({ CascadeType.DELETE })
public Set<TurnsHistoryHasTransportationrisks> getTurnsHistoryHasTransportationriskses() {
	return this.turnsHistoryHasTransportationriskses;
}
 
開發者ID:machadolucas,項目名稱:watchout,代碼行數:5,代碼來源:TurnsHistory.java

示例14: getTurnsHistoryHasPlacesriskses

@OneToMany(fetch = FetchType.LAZY, mappedBy = "placesrisks")
@Cascade({ CascadeType.DELETE })
public Set<TurnsHistoryHasPlacesrisks> getTurnsHistoryHasPlacesriskses() {
	return this.turnsHistoryHasPlacesriskses;
}
 
開發者ID:machadolucas,項目名稱:watchout,代碼行數:5,代碼來源:Placesrisks.java

示例15: getPlayersHasQuestses

@OneToMany(fetch = FetchType.LAZY, mappedBy = "quests")
@Cascade({ CascadeType.DELETE })
public Set<PlayersHasQuests> getPlayersHasQuestses() {
	return this.playersHasQuestses;
}
 
開發者ID:machadolucas,項目名稱:watchout,代碼行數:5,代碼來源:Quests.java


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