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: Diffrent sites to same database
PostPosted: Wed Apr 23, 2008 7:01 am 
Beginner
Beginner

Joined: Sun Aug 12, 2007 11:22 am
Posts: 44
Location: Sweden
Hi!

I have 4 websites that has it's own instance of hibernate but they all points to the same database. What should be my concerns here. Is there a better approach?

// Mathias


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 23, 2008 3:43 pm 
Expert
Expert

Joined: Mon Nov 26, 2007 2:29 pm
Posts: 443
you should program in a way as "stateless" as possible, never storing table lengths or children, constantly re-retrieving as much as possible on every request.
Hibernate guarantees you that whatever comes from query.list() is the most current.

_________________
Gonzalo Díaz


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.