-->
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: Persisting codes
PostPosted: Fri Dec 10, 2004 1:19 pm 
Beginner
Beginner

Joined: Thu Jul 29, 2004 7:14 pm
Posts: 41
Hibernate version: 2.17

Name and version of the database you are using: MS SQL Server 2000

My question is regarding persistence. I have codes (Locations, Departments etc.) in our system. For the very first user who login in the system, I want to retrieve these codes and persist them; all subsequent users then should use the persistent codes instead of retrieving them again. How can I do this in Hibernate?

The issue becomes complicated when an administrator user login and define a new Location for example or delete a Location. In these cases, I want the persistent codes (of Location only) to be refreshed so that other users continue to work on the most current codes.

Any hint/algorithm is very appreciated.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 10, 2004 2:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Take a look at the second-level-caching.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.