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
Post a Comment