Today i have new problem with JPA/EJB3. I have 2 table User and Group
with mapping OneToMany (Group One - User Many)
When I use select statement in EJB, for example:
@NamedQuery(name = "Iuser.findAll", query = "SELECT i FROM Iuser i")
a conflict occur, it not know group field I choose where table? (group field in User Table is groupid [foreign key] and group field in Group table is Group [Primary Key])
How can i solve this problem?
I know user user.group button statement in EJB3 not execute, please help.