]
Richard Bounds commented on HHH-4078:
-------------------------------------
Just a note to say that this bug is also apparent in 3.3.2.ga
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
In the constructor of EntityMetaModel
(
http://anonsvn.jboss.org/repos/hibernate/core/trunk/core/src/main/java/or...
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: