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


Java CascadeType.MERGE屬性代碼示例

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


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

示例1: getAnnotations

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

示例2: getTaxa

@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "Taxon_TypeAndSpecimen", joinColumns = {@JoinColumn(name = "typesAndSpecimens_id")}, inverseJoinColumns = {@JoinColumn(name = "Taxon_id")})
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE })
@JsonSerialize(contentUsing = TaxonSerializer.class)
public Set<Taxon> getTaxa() {
	return taxa;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:7,代碼來源:TypeAndSpecimen.java

示例3: getRelatedOnes

@OneToMany(fetch=FetchType.LAZY)
@Cascade({
	CascadeType.PERSIST
  , CascadeType.MERGE
  , CascadeType.REFRESH
  , CascadeType.SAVE_UPDATE
  , CascadeType.DETACH
})
@JoinTable(name = "FRAGMENT2FRAGMENT",
    joinColumns = @JoinColumn(name = "from_id"),
    inverseJoinColumns = @JoinColumn(name = "to_id"))
public Set<Fragment> getRelatedOnes() {
    return relatedOnes;
}
 
開發者ID:suewonjp,項目名稱:civilizer,代碼行數:14,代碼來源:Fragment.java

示例4: getTaxa

@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "Taxon_IdentificationKey", joinColumns = {@JoinColumn(name = "keys_id")}, inverseJoinColumns = {@JoinColumn(name = "Taxon_id")})
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE })
@JsonSerialize(contentUsing = TaxonSerializer.class)
public Set<Taxon> getTaxa() {
	return taxa;
}
 
開發者ID:RBGKew,項目名稱:eMonocot,代碼行數:7,代碼來源:IdentificationKey.java

示例5: getAnnotations

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

示例6: getComments

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

示例7: 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,項目名稱:powop,代碼行數:11,代碼來源:Taxon.java

示例8: getTags

@OneToMany(fetch=FetchType.LAZY)
@Cascade({
    CascadeType.PERSIST
  , CascadeType.MERGE
  , CascadeType.REFRESH
  , CascadeType.SAVE_UPDATE
  , CascadeType.DETACH
})
@JoinTable(name = "TAG2FRAGMENT",
    joinColumns = @JoinColumn(name = "fragment_id"),
    inverseJoinColumns = @JoinColumn(name = "tag_id"))
public Set<Tag> getTags() {
    return this.tags;
}
 
開發者ID:suewonjp,項目名稱:civilizer,代碼行數:14,代碼來源:Fragment.java

示例9: 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,項目名稱:powop,代碼行數:9,代碼來源:Image.java

示例10: 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

示例11: getChildren

@OneToMany(fetch=FetchType.LAZY)
@Cascade({CascadeType.MERGE
    , CascadeType.REFRESH
    , CascadeType.SAVE_UPDATE
    , CascadeType.DETACH
})
@JoinTable(name = "TAG2TAG",
    joinColumns = @JoinColumn(name = "parent_id"),
    inverseJoinColumns = @JoinColumn(name = "child_id"))
public Set<Tag> getChildren() {
    return children;
}
 
開發者ID:suewonjp,項目名稱:civilizer,代碼行數:12,代碼來源:Tag.java

示例12: getTaxa

/**
 * The list of all taxa associated with this reference.
 *
 * @return a set of taxa
 */
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "Taxon_Reference", joinColumns = {@JoinColumn(name = "references_id")}, inverseJoinColumns = {@JoinColumn(name = "Taxon_id")})
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE })
@JsonSerialize(contentUsing = TaxonSerializer.class)
public Set<Taxon> getTaxa() {
	return taxa;
}
 
開發者ID:RBGKew,項目名稱:powop,代碼行數:12,代碼來源:Reference.java

示例13: getTaxa

@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "Taxon_Concept", joinColumns = {@JoinColumn(name = "concepts_id")}, inverseJoinColumns = {@JoinColumn(name = "Taxon_id")})
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE })
@JsonSerialize(contentUsing = TaxonSerializer.class)
public Set<Taxon> getTaxa() {
	return taxa;
}
 
開發者ID:RBGKew,項目名稱:powop,代碼行數:7,代碼來源:Concept.java

示例14: getTaxa

@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "Taxon_Image", joinColumns = {@JoinColumn(name = "images_id")}, inverseJoinColumns = {@JoinColumn(name = "Taxon_id")})
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE })
@JsonSerialize(contentUsing = TaxonSerializer.class)
public Set<Taxon> getTaxa() {
	return taxa;
}
 
開發者ID:RBGKew,項目名稱:powop,代碼行數:7,代碼來源:Image.java

示例15: 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,項目名稱:eMonocot,代碼行數:11,代碼來源:Distribution.java


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