-->
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: Executing sql code
PostPosted: Wed Feb 08, 2006 12:20 am 
Newbie

Joined: Wed Dec 07, 2005 7:07 pm
Posts: 4
Hibernate version:
3.0.5
Name and version of the database you are using:
Ingres 2.6

Just wanted to know if it is possible to call sql commands such as the following:

set lockmode on afrelease where readlock=nolock

We are having trouble with table locking and want to try executing this command before we query the table.

Thanks,
Andrew


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 12:44 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Use Session.connection(), and create your own Statement, etc.
Note the different situations in which you must or must not close the connection returned by this method (see the javadocs).


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.