[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2671) Add a method of getting the entity class from a proxy class

Mike Quilleash (JIRA) noreply at atlassian.com
Tue Jun 12 08:36:04 EDT 2007


Add a method of getting the entity class from a proxy class
-----------------------------------------------------------

                 Key: HHH-2671
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2671
             Project: Hibernate3
          Issue Type: Improvement
          Components: core
    Affects Versions: 3.2.1
         Environment: Any
            Reporter: Mike Quilleash


Currently you can get the object class from a proxy object by calling Hibernate.getClass( proxyObject ).

A method for getting the object class from a proxy class would also be useful.  Contrived example.

Hibernate.getClass( proxyObject.getClass() )

OR

Hibernate.getClass( proxyClass )

So if I did

Hibenerate.getClass( obj1.getObj2().getClass() )

the class of the Obj2 relationship would be returned rather than the proxy class.


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