[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4773) @CollectionId does not force the id column to not-null

Strong Liu (JIRA) noreply at atlassian.com
Tue Apr 27 03:52:38 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36704#action_36704 ] 

Strong Liu commented on HHH-4773:
---------------------------------

https://jira.jboss.org/jira/browse/JBPAPP-4183

> @CollectionId does not force the id column to not-null
> ------------------------------------------------------
>
>                 Key: HHH-4773
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4773
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: annotations
>    Affects Versions: 3.3.2, 3.5.0.Beta-1, 3.5.0-Beta-2
>            Reporter: Strong Liu
>            Assignee: Strong Liu
>             Fix For: 3.5.x, 3.6
>
>
> @CollectionId describes an identifier column for a bag (ie an idbag).
> but it does not force the id to be not null.
> this can be reproduced by org.hibernate.test.annotations.collectionelement.indexedCollection.IndexedCollectionOfElementsTest on DB2 (because of DB2 has more restrict validation seems, it does not allow nullable column to be primary key)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list