java - jTDS SNAPSHOT isolation with spring transacion -


is there way use mssql snapshot transaction isolation spring transactions?

when try set

defaulttransactiondefinition def = new defaulttransactiondefinition(); def.setisolationlevel(4096); 

i

java.lang.illegalargumentexception: values of isolation constants allowed 

spring checks values defined in org.springframework.transaction.transactiondefinition used , trying set value 4096 becase corresponds jtds setting snapshot isolation:

/**  * sql server custom transaction isolation level.  */ public static final int transaction_snapshot = 4096; 

this in net.sourceforge.jtds.jdbc.connectionjdbc2


Comments

Popular posts from this blog

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -