[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2597) Criteria API should handle entity aliases

Emmanuel Bernard (JIRA) noreply at atlassian.com
Sun Sep 27 04:44:50 EDT 2009


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

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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list