Well, the workaround is indeed and quite surprisingly making the User class Serializable. So this is either a minor bug or a Hibernate quirk that should be documented. It isn't necessary if you map the same association with property-ref in XML.
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
Well, the workaround is indeed and quite surprisingly making the User class Serializable. So this is either a minor bug or a Hibernate quirk that should be documented. It isn't necessary if you map the same association with property-ref in XML.