added queryinit annot to student set
This commit is contained in:
parent
72ae7fdb3d
commit
ac45e321f4
@ -46,7 +46,8 @@ public class Project extends DomainObject implements Comparable<Project>, Iconiz
|
||||
@ManyToMany(targetEntity=Student.class)
|
||||
@JoinTable(name="project_student")
|
||||
@Sort(type=SortType.NATURAL) //Required by hibernate
|
||||
private SortedSet<Student> projectParticipants = new TreeSet<Student>();
|
||||
@QueryInit({"user"})
|
||||
private SortedSet<Student> projectParticipants = new TreeSet<Student>();
|
||||
|
||||
@OneToMany(mappedBy="project", targetEntity=ProjectFollower.class, cascade=CascadeType.ALL, orphanRemoval=true)
|
||||
@Sort(type=SortType.NATURAL) //Required by hibernate
|
||||
|
Loading…
x
Reference in New Issue
Block a user