I just found out one solution that worked for me
if (forceReadCommitted) {
this.session.doWork(new Work() {
@Override
public void execute(Connection connection) throws SQLException {
connection.setTransactionIsolation(2);
}
});
}
but you can notice that this is for the whole connection and not for a specific transaction. There might be better solutions still.