After upgrading from Hibernate 3.1.2 => 3.2.0.CR1, I now have the following problem:
org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class ...
The situation is I have a @OneToMany annotation targeting an @Embeddable class. This used to work in 3.1.2. I liked this because I didn't want to make the targeted class an @Entity since it really is just a value object so I don't care about @Ids. Mapping with a @OneToMany targeting an @Embeddable took care of creating a separate table with a foreign key, etc. Is this a valid thing to do? If so, is this a regression in 3.2.0.CR1?
This "issue" seemed to start happening after this patch was checked in:
http://fisheye.jboss.org/changelog/Hibernate?cs=9837