added queryinit annot to student set

This commit is contained in:
fred-fri 2012-05-31 17:22:46 +09:00
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