Attached a test-case.
To reproduce:

tar xvzf hibernatetest.tar.gz
cd hibernatetest
mvn clean test
Change By: Andreas Joseph Krogh (14/Aug/12 5:30 PM)
Attachment: hibernatetest.tar.gz
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira