I think it's surprising that there's so little about composite primary keys with auto generated values yet..
Isn't it also possible that, evertime you add a new entry to the database you do a query like (Role is the entity i tried with) | "SELECT MAX(r.roleId) + 1 FROM Role r" | and take it as the ID? I don't like it this way, because the code isnt in the entity itself, but i prefer it over creating a whole new table for primary keys, which doesn't appear very clean to me... Isn't there a proper implementation for @GeneratedValue by the container/hibernate yet?? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933989#3933989 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933989 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
