Hello.
I have a tables with
- Person
- Groups
- Statements
A person may have MANY statements, but he can belong to ONE group.
There are 2 tables that contain the mappings between person_id-group_id, and person_id-statement.
I have created a class Person with a property Set<Statement> and used <set/> i hibernate mappings. I get the set of statements for a person correctly.
The problem is that i dont know how to get the Group that a person belongs to. Its one group, thus I there is no need for <set/> here.
Any ideas ?????
Thanks in advance
|