• Post Reply Bookmark Topic Watch Topic
  • New Topic

1:N relationship with visible foreign key on many side

Zsolt Berentey
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.
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!