本文整理匯總了Java中org.hibernate.annotations.CascadeType.SAVE_UPDATE屬性的典型用法代碼示例。如果您正苦於以下問題:Java CascadeType.SAVE_UPDATE屬性的具體用法?Java CascadeType.SAVE_UPDATE怎麽用?Java CascadeType.SAVE_UPDATE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.hibernate.annotations.CascadeType
的用法示例。
在下文中一共展示了CascadeType.SAVE_UPDATE屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: 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;
}
示例2: 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;
}
示例3: getOriginalNameUsage
/**
* @return the originalNameUsage
*/
@ManyToOne(fetch = FetchType.LAZY)
@Cascade({ CascadeType.SAVE_UPDATE })
@JsonSerialize(using = TaxonSerializer.class)
public Taxon getOriginalNameUsage() {
return originalNameUsage;
}
示例4: getGroups
/**
*
* @return the groups this user is a member of
*/
@ManyToMany(fetch = FetchType.LAZY)
@Cascade({CascadeType.SAVE_UPDATE})
@JoinTable(
name = "User_Group",
joinColumns = { @JoinColumn(name = "User_id") },
inverseJoinColumns = { @JoinColumn(name = "groups_id") })
@JsonSerialize(contentUsing = GroupSerializer.class)
public Set<Group> getGroups() {
return groups;
}
示例5: 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;
}
示例6: getComments
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "commentPage_id")
@OrderBy("created DESC")
@Where(clause = "commentPage_type = 'Image'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public List<Comment> getComments() {
return comments;
}
示例7: getParentNameUsage
/**
* @return the immediate taxonomic parent
*/
@ManyToOne(fetch = FetchType.LAZY)
@Cascade({ CascadeType.SAVE_UPDATE })
@JsonSerialize(using = TaxonSerializer.class)
public Taxon getParentNameUsage() {
return parentNameUsage;
}
示例8: getAcceptedNameUsage
/**
* @return get the accepted name of this synonym
*/
@ManyToOne(fetch = FetchType.LAZY)
@Cascade({ CascadeType.SAVE_UPDATE })
@JsonSerialize(using = TaxonSerializer.class)
public Taxon getAcceptedNameUsage() {
return acceptedNameUsage;
}
示例9: getNamePublishedIn
/**
* @return the protologue
*/
@ManyToOne(fetch = FetchType.LAZY)
@Cascade({ CascadeType.SAVE_UPDATE })
@JsonSerialize(using = ReferenceSerializer.class)
public Reference getNamePublishedIn() {
return namePublishedIn;
}
示例10: getReferences
/**
* @return the references
*/
@ManyToMany(fetch = FetchType.LAZY)
@Cascade({ CascadeType.SAVE_UPDATE })
@JoinTable(name = "Distribution_Reference", joinColumns = { @JoinColumn(name = "Distribution_id") }, inverseJoinColumns = { @JoinColumn(name = "references_id") })
@JsonSerialize(contentUsing = ReferenceSerializer.class)
public Set<Reference> getReferences() {
return references;
}
示例11: 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;
}
示例12: 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;
}
示例13: getComments
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "commentPage_id")
@OrderBy("created DESC")
@Where(clause = "commentPage_type = 'PhylogeneticTree'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public List<Comment> getComments() {
return comments;
}
示例14: getReferences
/**
* @return the references
*/
@ManyToMany(fetch = FetchType.LAZY)
@Cascade({ CascadeType.SAVE_UPDATE })
@JoinTable(name = "Description_Reference", joinColumns = { @JoinColumn(name = "Description_id") }, inverseJoinColumns = { @JoinColumn(name = "references_id") })
@JsonSerialize(contentUsing = ReferenceSerializer.class)
public Set<Reference> getReferences() {
return references;
}
示例15: getTaxa
@Override
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "Taxon_PhylogeneticTree", joinColumns = {@JoinColumn(name = "trees_id")}, inverseJoinColumns = {@JoinColumn(name = "Taxon_id")})
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE })
@JsonSerialize(contentUsing = TaxonSerializer.class)
public Set<Taxon> getTaxa() {
return taxa;
}