[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-4078) EntityMetamodel#entityNameByInheritenceClassNameMap mapping from class or class names?

Gail Badner (JIRA) noreply at atlassian.com
Wed Jul 14 01:23:13 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gail Badner resolved HHH-4078.
------------------------------

      Assignee: Gail Badner
    Resolution: Duplicate

This was fixed in 3.5.3 by HHH-4036.

> EntityMetamodel#entityNameByInheritenceClassNameMap mapping from class or class names?
> --------------------------------------------------------------------------------------
>
>                 Key: HHH-4078
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4078
>             Project: Hibernate Core
>          Issue Type: Bug
>    Affects Versions: 3.5.0.Beta-1
>            Reporter: Tsering Shrestha
>            Assignee: Gail Badner
>
> In the constructor of EntityMetaModel (http://anonsvn.jboss.org/repos/hibernate/core/trunk/core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java      revision 15258)
> Line 314:
> if ( persistentClass.hasPojoRepresentation() ) {
>       entityNameByInheritenceClassNameMap.put( persistentClass.getMappedClass(), persistentClass.getEntityName() );
> However at Line 578:
> public String findEntityNameByEntityClass(Class inheritenceClass) {
>       return ( String ) entityNameByInheritenceClassNameMap.get( inheritenceClass.getName() );
> }
> Why are we using java.lang.Class as the keys when we put new entries to the map but try to read with java.lang.String keys?

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