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

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -