I'm having a weird problem...
I'm doing session.load() with an object that uses a custom type
@Basic(optional = false)
@Type(type = "CustType")
private SomeObject type;
but when i try to access the type, it returns null.
So i debugged into the hiernate code, and the type object does get retrieved and is assigned correctly.
When it returned, it's wrapped with the proxy, inside which (after initializing it with Hibernate.initialize), i can see a 'target' field that does contain the right type value.
However, when i do getType(), it does return null, so it looks like it's the proxy that's messing up...
Any idea what's going on ?
|