[JBoss-user] [EJB 3.0] - Re: ManyToOne to a composite primary key

2006-03-02 Thread heinrich
Hi Emmanuel,

i think i have nearly the same problem.
I have a database table with a composite pk consisting of a auto-gen id and a 
fk.
As you mentioned before, auto-gen values are not allowed in composite pk.
But, is there a solution for this cases?
I think this is not a very exotic database architecture.

Greetings

 Martin

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927416#3927416

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927416


---
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
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: ManyToOne to a composite primary key

2006-02-21 Thread epbernard
First of all
GeneratedValue cannot be used with composite primary keys

Second, the column definitions should be set on the getters of UserPK, not on 
the User entity

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925298#3925298

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925298


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user