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.  [ 1 post ] 
Author Message
 Post subject: Hibernate 3.2. Made a local patch to support 'WITH UR'
PostPosted: Wed Dec 10, 2008 8:52 am 
Newbie

Joined: Wed Dec 10, 2008 8:17 am
Posts: 2
My problem was some select SQL's in the application were required to have the DB2 specific "WITH UR" (uncomitted/dirty reads) clause to avoid deadlocks. It is only a few of the transactions of course that uses this. However all transactions use the same connectionpool, so I could not just set the isolation level in the properties since this then would apply to all connections.

On a Query object I added so additional SQL will be appended to the end of the SQL. So it can be used with other vendor specific SQL that is added to the end of an SQL.

Query
public Query setAdditionalSQLToAppend(String additionalSQL);

It is quite similar to the comment field that is added to the front of the SQL, but without the /* */

My question is if this would have any interest to the community if I submit this patch to 3.2 ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.