-->
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: Loading hibernate objects as defined subclass
PostPosted: Thu Jul 24, 2008 3:45 am 
Newbie

Joined: Mon Apr 17, 2006 6:18 pm
Posts: 12
Hello,

I have the following question using hibernate

HorsesDBO is my hibernate-mapping class where all the fields from my table are mapped to.

From HorsesDBO inherit some classes that provide only some special views on my dbo.

HorsesRaceComputer extends HorsesDBO computes all the necessary data while a race (but has no further mapped attributes).
HorsesDrawer extends HorsesDBO is responsible for graphical output of a horse (and has no further mapped attributes, too).

So I would like to tell hibernate while loading which subclass of HorsesDBO should be taken to create the Horses object, depending on the context I need to load a horse.

Is that possible?

Bye Michael


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.