users@jaxb.java.net

generating _at_JoinColumn annotation from hyperjaxb3 when containing class is @Embeddable

From: Andrew Geery <andrew.geery_at_gmail.com>
Date: Fri, 31 Aug 2012 13:37:14 -0400

I'm using the Hyperjaxb3 plugin to generate JPA annotations. This is truly
an amazing plugin. The issue I'm running into is that some of my XSD types
map to @Embeddable classes. The hyperjaxb3 plugin does everything
perfectly *except* that it does not create @JoinColumn annotations for
@OneToMany or @CollectionTable annotations (the @JoinColumn annotations are
generated correctly when the class is marked as an @Entity). I filed a bug
for this ( http://jira.highsource.org/browse/HJIII-98 ), but I was
wondering if anybody had run into this or worked around it?

Thanks
Andrew