-->
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: [HLEP] for usage of hibernates
PostPosted: Wed Apr 07, 2004 11:36 pm 
Newbie

Joined: Wed Apr 07, 2004 11:28 pm
Posts: 6
Now we are develop a client/server system which use a database server as server and have several client applications. Our client application use hibernate 2.1 as it's OR mapping tools.

The client application is resposible to display and edit data. In this environment we have a DisplaySession for displaying the information of persistent object. When user pikc up a object from GUI, we open an GUI Editor and load object with it's ID though a new EditSession. User can modify the state of this object with this EditSession and decide to submit or cancel the change finally. If user submit it, we just flush and close the EditSession. If user cancel it, we just close the EditSession without flushing. Because we will open several GUI Editors for objects modification, we create a new EditSession for every Editor and close it after Editor closed. So the temporary changes of object state in Editor will not affect the display.

We meet the following problem I can not solve.

Questions:
1. How can I clost a session without flushing?
2. After the changes of persistent object state is persisted in an EditSession, how can I refresh this object in DisplaySession? I can not get the new state of this object after called refresh() method.
3. Sometimes one client need to get the new state of loaded object which has been changed by other client. It's seems that it can not refresh call Session.refresh() method simply.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 08, 2004 2:03 am 
Newbie

Joined: Wed Apr 07, 2004 11:28 pm
Posts: 6
These problems have been solved by corrected a mistake which made in mapping file. The file likes following.
Before which is wrong:
<class name="eg.IA" proxy="eg.IA">
...
<subclass name="eg.A" proxy="eg.IA" />
</class>
Now correctly:
<class name="eg.IA" proxy="eg.IA">
...
<subclass name="eg.A" proxy="eg.A" />
</class>


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.