JPA ManyToMany problem...

Posted by Parhs on Stack Overflow See other posts from Stack Overflow or by Parhs
Published on 2010-05-02T00:33:29Z Indexed on 2010/05/02 0:37 UTC
Read the original article Hit count: 634

Filed under:
|
|

Hello i have an Entity Exam

 @Id
    @GeneratedValue(strategy=GenerationType.TABLE)
    private Long id;
    .....
    ......

    @ManyToMany
    private List<Exam> exams;

    @ManyToMany(mappedBy="id")
    private List<Exam> parentExams;

The problem is that

@ManyToMany
        private List<Exam> exams;

is ok works great...

but this doesnt validate?!

 @ManyToMany(mappedBy="id")
        private List<Exam> parentExams;

Any idea what to do ? I just want to get the exams that are parents of the current exam.

??e???? ??µ?sµat??? ?aµe??

© Stack Overflow or respective owner

Related posts about eclipselink

Related posts about java