A test in hibernate when using 2 transactions in different thread