I have this XSD definition that I use to generate JPA objects via Hyperjaxb3. Basically, what I need is that the generated class will give me access to the column and not to the entity. I want to be able to modify the CASE_ID field directly and not…
In my XSD, I have an xs:choice element that is transformed as a List of a new type by JAXB.
Using Hyperjaxb3, I'm trying to customize the name of the table associated to that new type, but I haven't been able to.
XSD:
I've set up a maven project to generate Java classes from a xsd-Schema. Firstly I configured the maven-hyperjaxb3-plugin (see the pom.xml snippet below), so that it can put the default JPA2 annotations in the entities. One of this annotations is…
On my current project, I need to deal with a set of XML files containing some financial information and, later on, do some complex queries on that data in order to populate a database schema.
Those XML files are XSD based and I used Hyperjaxb3 maven…
I am trying to upgrade to JPA 2.1 in an eclipse project that uses maven, jpa, hibernate, and hyperjaxb. I am getting the following error when I try to do Run As..Run on Server from within eclipse:
java.lang.NoSuchMethodError:…
I have an entity that represents the root element of a large xml file that was unmarshalled from xml to java using jaxb. I am trying to persist it using hibernate EntityManager.persist(elementname), but it is throwing a HibernateException. The…
I am trying to get hyperjaxb to process a real schema. I downloaded and unzipped the hyperjaxb maven project from this link and then navigated to the root directory using cmd.exe and tested it with the sample data by running mvn clean install to…
I am trying to learn hyperjaxb by studying this tutorial. I followed all of the instructions down to the heading section What was Generated?. This included the following steps:
download the Basic Project Template for Hibernate and Maven
unzip the…
I am newbie to JPA/Hyperjaxb arena. My goal is to generate a many-to-many mapping between Author and Book tables (postgres database).
In the database- Author table has columns - id, name and Book table has columns - id, title.
I have a junction…
Has there been any update on using IDs and IDREFs for JAXB 2.x in HyperJAXB3?
HyperJAXB and IDREFs
I've added a baseType binding to my IDREF element and the correct type is generated on the owner object, but the resulting class does not compile, as…
I would like to ask such question, I have XML xsd`s, which generate beans with org.jvnet.jaxb2.maven2 ,
but now I need to add to these beans java.persistence mapping.
Which is the best way?
here is example of xsd:
...
I am using hypejaxb3, and trying to find the syntax for adding the inheritance. e.g i wants to define the xsd for the relation
class Circle inherits Shape .
I could find the hyperjaxb customization guide at…
Currently, I can instruct Hyberjaxb to not persist a node in a xml object at compile time using the transient functionality. Is there anyway of applying this dynamically at runtime? If x=y, then persist particular node in xml object, otherwise do…