Allow proxy classes to be passed in to API methods

Description

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.

Activity

Steve EbersoleJuly 25, 2024 at 2:42 PM

Not really an issue imo. And 17 years + no votes, watches nor contribution

MikeMJune 12, 2007 at 2:37 PM

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

Won't Do

Details

Assignee

Reporter

Components

Priority

Created June 12, 2007 at 2:32 PM
Updated July 25, 2024 at 2:42 PM
Resolved July 25, 2024 at 2:42 PM