As a follow-up:
The error disappears if the @JoinColumn annotations are removed. (They are unnecessary, because they refer to the target object's primary key field.) I have not actually tested that the code runs properly, but the environment starts cleanly.
Is this a bug (or limitation) of how @JoinColumn operates?
This is my configuration:
16:26:12,103 INFO [Version] Hibernate Annotations 3.3.0.GA
16:26:12,117 INFO [Environment] Hibernate 3.2.4.sp1
16:26:12,123 INFO [Environment] Bytecode provider name : cglib
16:26:12,221 INFO [Version] Hibernate EntityManager 3.3.1.GA
|