@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="department")
public Set<Employee> getEmployees() {
return this.employees;
}
java类javax.persistence.CascadeType的实例源码
Department.java 文件源码
项目:DocIT
阅读 37
收藏 0
点赞 0
评论 0
Department.java 文件源码
项目:DocIT
阅读 35
收藏 0
点赞 0
评论 0
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="department")
public Set<Department> getDepartments() {
return this.departments;
}
AssociationAttribute.java 文件源码
项目:lams
阅读 35
收藏 0
点赞 0
评论 0
public Set<CascadeType> getCascadeTypes() {
return cascadeTypes;
}
Album.java 文件源码
项目:aws-photosharing-example
阅读 27
收藏 0
点赞 0
评论 0
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "albums", cascade=CascadeType.PERSIST)
public List<Media> getMedia() {return media;}
User.java 文件源码
项目:aws-photosharing-example
阅读 31
收藏 0
点赞 0
评论 0
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Media> getMedia() {return media;}
User.java 文件源码
项目:aws-photosharing-example
阅读 28
收藏 0
点赞 0
评论 0
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Share> getShares() {return shares;}