-->
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.  [ 4 posts ] 
Author Message
 Post subject: Read Only Entity Beans and Hibernate
PostPosted: Sat Jul 24, 2004 10:19 am 
Newbie

Joined: Sat Jul 24, 2004 10:10 am
Posts: 15
Hibernate Version : 2.1.4
App Server : Jboss 3.2.4
Database : MS SQL Server 2000

I am changing the persistence mechanism in my current application from Entity beans to Hibernate. We use a read only BMP entity bean which
returns a set of fairly static data for a given key. The read only entity
bean refreshes every 5 minutes. Can I simulate the same in Hibernate.

Please advise.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 24, 2004 11:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Use a second level cache.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 25, 2004 9:23 am 
Newbie

Joined: Sat Jul 24, 2004 10:10 am
Posts: 15
Thanks. Can you elaborate? Can I cache queries?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 25, 2004 9:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Yes, you can cache queries, entities, associations, pretty much everything - read the documentation please.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.