[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-508) @GeneratedValue does not work with composite primary key
Emmanuel Bernard (JIRA)
jira-events at lists.jboss.org
Thu Mar 12 11:42:22 EDT 2009
[ https://jira.jboss.org/jira/browse/EJBTHREE-508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12456940#action_12456940 ]
Emmanuel Bernard commented on EJBTHREE-508:
-------------------------------------------
Hi
Can you provide a patch + test case?
> @GeneratedValue does not work with composite primary key
> --------------------------------------------------------
>
> Key: EJBTHREE-508
> URL: https://jira.jboss.org/jira/browse/EJBTHREE-508
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: EJB 3.0 RC6 - PFD
> Reporter: Holger Johanndeiter
> Assignee: Emmanuel Bernard
> Attachments: User.java, UserPK.java
>
>
> I have an entity with a primary key class (@IdClass annotation) where i want the id to be auto-generated. (see forum post)
> That does not happen though, no ids are generated, the only id i get is 0. (leads to one database entry where the id is 0, after that errors of course).
> Database is Hypersonic SQL.
> The entity works perfectly fine without @IdClass annotation.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list