For me, the problem was a bug in Hibernate when using non-pk relations: https://hibernate.atlassian.net/browse/HHH-7668
As a workaround, I implemented Serializable and the exception is gone
For me, the problem was a bug in Hibernate when using non-pk relations: https://hibernate.atlassian.net/browse/HHH-7668
As a workaround, I implemented Serializable and the exception is gone