1:N relationship with visible foreign key on many side
posted 12 years ago
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.