This content has been marked as final. Show 2 replies
After upgrading from 4.0.3SP1 => jboss-4.0.4.GA, I now have the following problem when deploying:
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 4.0.3SP1. 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 jboss-4.0.4.GA?