[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4753) Default table name for @CollectionTable is not inferred correctly according to spec requirement

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Jan 4 22:06:29 EST 2010


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

Steve Ebersole commented on HHH-4753:
-------------------------------------

The JPA specification (section 11.1.8) says that the default table name for a @CollectionTable should be "The concatenation of the name of the containing entity and the name of the collection attribute, separated by an underscore."

Currently our EJB3NamingStrategy impl is using the table name of the owning entity instead of the entity name.  This is dictated by the NamingStrategy#collectionTableName.  It may be enough to have EJB3NamingStrategy#collectionTableName checking the incoming 'associatedEntity' argument for nullness as the signal here to differentiate between a many-to-many collection and a value collection.


> Default table name for @CollectionTable is not inferred correctly according to spec requirement
> -----------------------------------------------------------------------------------------------
>
>                 Key: HHH-4753
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4753
>             Project: Hibernate Core
>          Issue Type: Sub-task
>          Components: annotations
>            Reporter: Steve Ebersole
>


-- 
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