-->
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: Inheritance and Hibernate.initialize
PostPosted: Wed Mar 14, 2007 9:25 am 
Newbie

Joined: Fri Sep 02, 2005 7:36 pm
Posts: 6
Hi,

I'm having a problem with two one-to-many associations. These associations are with two subclasses of the same object. The problem occurs when I load my object, when Hibernate.initilize is executed an exception is thrown: org.hibernate.WrongClassException: Object with id: 4700.

The id refers to an object of the other association. I saw the log and actually the id of the discriminator isn't in the log, i.e, the static method initialize is loading the superclass.

Does Hibernate.initialize method load only the superclass?

Inheritance: Single table strategy.
Hibernate 3.2
Annotations


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.