[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2597?page=c...
]
Emmanuel Bernard commented on HHH-2597:
---------------------------------------
@Entity.name != Hibernate entity-name and only applies to query. The spec forces that, I
could not merge the two ideas.
Criteria API should handle entity aliases
-----------------------------------------
Key: HHH-2597
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2597
Project: Hibernate Core
Issue Type: Improvement
Components: query-criteria
Reporter: Emmanuel Bernard
Priority: Minor
HQL takes entity alias into account
Criteria does not seem to do so
"I'm trying to use @Entity(name="Test") to map a very simple pojo, but
hibernate seems to ignore entity name, ie.:
session.createCritirea("Test").list() throws
"org.hibernate.MappingException: Unknown entity: Test" but
session.createCritirea(myPojoClassName).list() works. "
http://forum.hibernate.org/viewtopic.php?p=2350219
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira