Questions tagged [hyperjaxb]

HyperJaxb3 adds JPA annotations to jaxb classes.

The project site is http://hyperjaxb3.codehaus.org/

101 questions
2
votes
1 answer

Marking a one-to-many relationship as not updatable or insertable in hyperjaxb3

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…
Alfredo A.
  • 1,697
  • 3
  • 30
  • 43
2
votes
0 answers

How to customize with Hyperjaxb3 table name for list items?

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:
Ivan Clavijos
  • 163
  • 1
  • 7
2
votes
4 answers

Editing @java.persitence.Table in external jaxb-Binding

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…
Erzen
  • 169
  • 10
2
votes
1 answer

Setting column length on generated JPA model with Hyperjaxb

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…
Ivan Clavijos
  • 163
  • 1
  • 7
2
votes
1 answer

Jaxb list unmarshalling order

I have an xml file which looks as follows: aaa bbb elem1 elem2 ...
Ira Re
  • 730
  • 3
  • 9
  • 25
2
votes
1 answer

upgrade hyperjaxb3 to jpa 2.1

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:…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
2
votes
1 answer

HibernateException: Unable to resolve entity name from Class [java.lang.Boolean] expected instance/subclass of

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…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
2
votes
1 answer

XPath evaluation of "xs:complexType[@name='Any']" results in empty target node

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…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
2
votes
1 answer

hyperjaxb3 not generating files

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…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
2
votes
3 answers

Getting error Caused by: org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class

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…
chapstick
  • 713
  • 6
  • 16
  • 25
2
votes
0 answers

HyperJAXB and ID/IDREF

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…
apoplexy
  • 323
  • 2
  • 9
2
votes
2 answers

How to generate beans with persistence mapping from xsd`s?

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: ...
Gytis
  • 403
  • 1
  • 4
  • 14
1
vote
1 answer

order-column does not seem to work

I have defined my bindings in the following way ...........
user1224036
  • 988
  • 1
  • 15
  • 34
1
vote
1 answer

generating inheritance mapping using the hypejaxb

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…
kunal
  • 779
  • 6
  • 25
1
vote
1 answer

Hyperjaxb apply transient dynamically

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…
xchagger
  • 133
  • 1
  • 9