I'm trying to generate a set of Java classes from *.xsd files that all have a common mapped-super-class (called DataObject). So far I've managed to get it to generate classes that are descendants of DataObject using the following in the bindings.xjb file:
<jaxb:globalBindings localScoping="toplevel"> <xjc:superClass name="com.companyname.model.DataObject"/> <jaxb:serializable uid="1" /> </jaxb:globalBindings>
My problem is that Hyperjaxb3 generates its own primary key called hjid, but DataObject already contains a primary key and I need/want to use that.
So, how do I stop Hyperjaxb3 from generating hjid for all classes? I've already tried various suggestions that I've found online, but they didn't work for me.