• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

1:N relationship with visible foreign key on many side

 
Zsolt Berentey
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again,
I am using xdoclet. I got confused when trying to create a 1:N relationship, with the foreign key visible on the many side.
The same example: User has groups. I'd like to use a relationship to enumerate the groups of a user. I also would like to see the userId - which is the foreign key in the group table - in Group. I tried some variations but the best result would be an SQLException like 'Column userID specified twice' when trying to insert a group.
Any help would be appreciated.
Thanks,
Zsolt.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic