[hibernate-issues] [Hibernate-JIRA] Created: (ANN-826) entity name are useless at least if passed to Session.get(String, ...)

Paul Pogonyshev (JIRA) noreply at atlassian.com
Wed Apr 22 05:46:17 EDT 2009


entity name are useless at least if passed to Session.get(String, ...)
----------------------------------------------------------------------

                 Key: ANN-826
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-826
             Project: Hibernate Annotations
          Issue Type: Bug
          Components: binder
    Affects Versions: 3.4.0.GA
         Environment: Hibernate 3.3.0.GA, database Oracle 11g (but this is likely irrelevant)
            Reporter: Paul Pogonyshev
         Attachments: test.diff

Hibernate method Session.get(String, Serializable) has first parameter described as 'the entity name'.  However, if in my application I use @Entity(name="foo"), then statement

    session.get("foo", ...)

fails with org.hibernate.MappingException: Unknown entity: foo.  However, when I specify class name instead it works.

I cannot compile and test hibernate-annotations, but I bet the attached patch should add a relevant test.

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