-->
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: Save an Object in draft stat
PostPosted: Mon May 18, 2009 12:09 pm 
Newbie

Joined: Thu Nov 01, 2007 6:34 pm
Posts: 2
Hi all,
I need to save an object in final or draft state and I can not use a boolean flag to indicate that state. So I'll need to replicate the table (table_final_state and table_draft_state).

Questions are:

1 - Can I map the same object to two different tables? How?
2 - How can I "override" the persist process in order to persist the object to one or the other table?
3 - How can I "override" the loading process? I need to look in the draft table first, and if not data is found, then look in the final table.

Thanks a lot in advance,
Mario.


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.