I also ran into this problem with 4.0.5GA. A posted my comments and a solution proposal in
JIRA to your issue.
See:
http://jira.jboss.com/jira/browse/HIBERNATE-50
Best Ragards,
Lajos Gathy
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004519#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...