[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2670) Allow proxy classes to be passed in to API methods

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


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27223 ] 

Mike Quilleash commented on HHH-2670:
-------------------------------------

I am aware of the Hibernate.getClass() method but it is a bit annoying to have to wrap this around these method calls.

> Allow proxy classes to be passed in to API methods
> --------------------------------------------------
>
>                 Key: HHH-2670
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2670
>             Project: Hibernate3
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.2.1
>         Environment: Any
>            Reporter: Mike Quilleash
>
> Specifically
> session.get()
> sessionFactory.getClassMetadata()
> At the moment if you have a proxy object and do the following
> session.get( proxyObject.getClass(), id );
> You'll get an exception because it just does .getName() on the class.
> Ideally all the hibernate APIs should handle proxy classes being passed in and normalise them to the base 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