[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-565) NamingStrategy.classToTableName receives only class name, not a fully qualified name as stated in javadoc

Emmanuel Bernard (JIRA) noreply at atlassian.com
Fri Feb 23 18:40:33 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-565?page=comments#action_26278 ] 

Emmanuel Bernard commented on ANN-565:
--------------------------------------

After some thought, I think NamingStrategy should evolve to get a getDefaultEntityName(String className);


> NamingStrategy.classToTableName receives only class name, not a fully qualified name as stated in javadoc
> ---------------------------------------------------------------------------------------------------------
>
>          Key: ANN-565
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-565
>      Project: Hibernate Annotations
>         Type: Bug

>   Components: binder
>     Versions: 3.2.0.cr2
>     Reporter: Lóránt Pintér
>  Attachments: hibernate-annotations-3.2.1.patch.txt
>
>
> I have a custom NamingStrategy that overrides classToTableName in EJB3NamingStrategy. Prior to upgrading to Hibernate 3.1.3, my NamingStrategy implementation received the correct classnames as documented in the javadoc at http://www.hibernate.org/hib_docs/v3/api/org/hibernate/cfg/NamingStrategy.html#classToTableName(java.lang.String)
> Since then, it only receives the name of the class without the package specification. I tried upgrading to 3.2.0.cr2, but it didn't help.

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