-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problems with session.load and custom types
PostPosted: Sat May 31, 2008 11:53 pm 
Newbie

Joined: Sat May 31, 2008 11:39 pm
Posts: 4
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 ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.