This content has been marked as final.
Show 4 replies
-
1. Re: Entities generated by seam (many 2 many)
swd847 Oct 8, 2007 8:28 AM (in response to jagr)Does the user-role table have a primary key?
-
2. Re: Entities generated by seam (many 2 many)
igx89 Oct 8, 2007 11:40 AM (in response to jagr)Does seam-gen even work with many-to-many relationships? It uses Hibernate Tools for reverse engineering, and that has a major problem where many-to-many relationships either completely don't work (if using EJB annotations) or default to read-only (if using XML mapping files; no inverse="true" is added on either side of relationships).
-
3. Re: Entities generated by seam (many 2 many)
jagr Oct 8, 2007 11:41 AM (in response to jagr)"swd847" wrote:
Does the user-role table have a primary key?
I have
Table role:
-role (pk)
-name
-description
Table user:
-username(pk)
-password
-name
-email
Table user_role:
username(pk)
role(pk) -
4. Re: Entities generated by seam (many 2 many)
atao Oct 8, 2007 12:08 PM (in response to jagr)
Does seam-gen even work with many-to-many relationships?
No.
See "Generate apps that has many to many table with seam-gen", http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032289