-->
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: How to implement non persistent changes?
PostPosted: Mon Sep 15, 2008 8:31 am 
Newbie

Joined: Mon Sep 15, 2008 7:05 am
Posts: 1
I have the following situation:

1. There is a complex graph of objects with all kinds of relations mapped to the database.

2. There is an abstract viewer(s), which receives a domain object and may display any data by navigating the links. We don't know beforehand which data the viewer may need/request.

3. There are editors which allow the user creating/modifying some objects. Editors have preview buttons which shall open the viewer but not persist the changes.

Question: Is it possible to prevent N/Hibernate from persisting the changes keeping the object persistent at the same time (to allow the viewers pull any data they need from the database)?

Additional complexity: Each editor and viewer has its own session. So, the editor shall detach the object and the viewer shall re-attach it to another session.

I purposely don't give much details. I have several working solutions for each small piece of the problem, but in a whole, I don't have a nice approach which satisfies me. I want some abstract/academic/architectural/generic (don't know how to call it) solutions or ideas.


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.