-->
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: read-only database
PostPosted: Thu May 12, 2005 3:13 pm 
Newbie

Joined: Tue May 10, 2005 2:22 pm
Posts: 10
Hibernate version: 3.0.2

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

One of the databases I'm using is strictly read-only. My application will never update it. Now, while I can add "mutable=false" to the class definitions and "update=false" and "insert=false" to all the property definitions, is there an easier way to tell Hibernate that I will never want to insert, update or delete? The org.hibernate.persister.entity.BasicEntityPersister is spitting out static SQL it would use for these operations although the application will never have need of them.


Top
 Profile  
 
 Post subject: Re: read-only database
PostPosted: Thu May 12, 2005 3:16 pm 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
RedWolf wrote:
Hibernate version: 3.0.2

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

One of the databases I'm using is strictly read-only. My application will never update it. Now, while I can add "mutable=false" to the class definitions and "update=false" and "insert=false" to all the property definitions, is there an easier way to tell Hibernate that I will never want to insert, update or delete? The org.hibernate.persister.entity.BasicEntityPersister is spitting out static SQL it would use for these operations although the application will never have need of them.


I think all you need is the mutable="false".


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.