¡@

Home 

java Programming Glossary: studenttclass

Mapping ManyToMany with composite Primary key and Annotation:

http://stackoverflow.com/questions/6405746/mapping-manytomany-with-composite-primary-key-and-annotation

public class Student private String id private Set StudentTClass teachingClasses new HashSet StudentTClass @OneToMany fetch FetchType.LAZY.. id private Set StudentTClass teachingClasses new HashSet StudentTClass @OneToMany fetch FetchType.LAZY mappedBy pk.student public Set.. fetch FetchType.LAZY mappedBy pk.student public Set StudentTClass getTeachingClasses return teachingClasses public void setTeachingClasses..