-->
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.  [ 2 posts ] 
Author Message
 Post subject: Morphing between subclasses
PostPosted: Mon May 03, 2004 8:35 am 
Beginner
Beginner

Joined: Wed Feb 04, 2004 5:21 pm
Posts: 37
I have a situation where I want to do something similar to subclasses. But I am not sure how Hibernate behaves when the discriminator value changes.

Main class: QueuedCommand

Sub class A : RawCommand

Sub class B : InterpretedCommand

Sub class C : ProcessedCommand

What I essentially do is to have a serverside process which takes RawCommands and produces InterpretedCommands, takes InterpretedCommands and produces ProcessedCommands.

So how does the Cache handle this behaviour ?

Henrik


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 03, 2004 8:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Well if you can have your objects suddenly change their type in your java code, Hibernate can handle that, too. But as this is not possible in java, you will anyways have to create new objects and copy the old values over, delete the old object and save the new one.


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

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.