I know this question has been asked before but I have a design question as well.
There are two tables like so:
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's easy to work with this structure but I have two questions. First, how should I map group_members in Hibernate mapping? Hibernate wants an id of some sort and I'm not sure what to tell it.
Second, although perhaps I should ask it first, is this bad db design? Should there be a pk on the group_members table, like a sequence or something?
Also, this is an Oracle db: is there some autogenerated id I can use despite the (possibly) poor db design?