I know this question has been asked before, but I also have a design question.
There are two tables:
Table Group_table column pk_Group_name column group_type etc Table Group_members column fk_group_name -> foreign key to group_table column group_member
It is easy to work with this structure, but I have two questions. First, how do I display group_members in a hibernate mapping? Hibernate wants some sort of identifier, and I'm not sure what to say.
Secondly, although maybe I should first ask about this, is this a bad db design? Should there be pk in the group_members table, like a sequence or something else?
Also, this is Oracle db: is there some kind of auto-generated id that I can use despite the (possibly) bad db design?
source share