-->
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: How to send 'alter session' to Oracle via Hibernate?
PostPosted: Fri Jan 19, 2007 12:30 pm 
Newbie

Joined: Mon Jul 24, 2006 1:35 pm
Posts: 10
Hi,

I was trying to pass that command to Oracle via session.createSQLQuery, but SQL queries don't support updates in Hibernate (executeUpdate() method fails).
Is there any other way of passing such Oracle meta-SQL with Hibernate?
I'd appreciate any help in this matter.
Thank you,

Bratek


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 19, 2007 12:42 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
update your hibernate or execute it like any normal jdbc against the connection.

_________________
Max
Don't forget to rate


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.