I have a method that updates a row in a table.
After the update I call the flush hibernate operation .

I annotated this method with @Transactional, but after the test method the table continue locked, why?

I thought that after a test of a Transactional method, rollback all the changes and release the lock of table.