hibernate transaction fixes