Embeddable « Component « JPA Q&A





1. Problem with including an Embeddable Component twice    forum.hibernate.org

class A { @Embedded C someRef; } class B extends A { @Embedded @AttributeOverrides (...override to point to different columns...) C someOtherRefInstance; } class C { String name; } Now class B that extends A has two ...

3. Generics and Embeddable Components    forum.hibernate.org

Here's an interesting challenge for you annotation gurus: I'm using Hibernate 3 and Annotations. I've got an embedded component that is generic. In the containing class I then use AttributeOverride to change the column mapping. The only problem is Hibernate doesn't know what type the property is. The error I get is: org.hibernate.AnnotationException: Property MyEmbedded.value has an unbound type and no ...