Questions tagged [hyperjaxb]

HyperJaxb3 adds JPA annotations to jaxb classes.

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

101 questions
0
votes
1 answer

Generating XML with DB data through dynamically changing XSD

Considering an example for a shop I have an XSD for a shop, and a number of tables having data relating to inventory, records etc. I have a DB-file specifying where the data related to the XSD lies in the tables. I need to refer this file and XSD…
SKaul
  • 349
  • 2
  • 7
  • 22
0
votes
1 answer

How to add NamedQueries annotation with hyperjaxb

My question is very simple and straightforward. I need to add a @NamedQueries annotation to my generated entity classes. The JPA layer is being generated with Hyperjaxb. I do not know how to use the element to add this line ... @NamedQueries(value…
Alfredo A.
  • 1,697
  • 3
  • 30
  • 43
0
votes
2 answers

Form encoding in Tapestry

I have a problem with Tapestry form. My XML database is very sensible with encoding, and need utf-8. When i put the char 'à' in my form, tapestry receive 'Ó' and my core get an error : Invalid byte 2 of 3-byte UTF-8 sequence. I haven't the problem…
alex
  • 123
  • 1
  • 1
  • 12
0
votes
1 answer

Force hyperjaxb to generate Set instead of List for OneToMany relationships

I am using hyperjaxb to generate JAXB-JPA annotated classes from a XSD file. I have Persona entity with many Encounters. This is the customization section
Alfredo A.
  • 1,697
  • 3
  • 30
  • 43
0
votes
1 answer

Remove ambiguity between hyperjaxb generated classes and apache cxf generated clases

I have the following project structure: service-parent |__service-schemas |__service-database |__service-contract |__service-implementation I am using hyperjaxb3 because I ultimately need that the objects passed through the web service are the ones…
Alfredo A.
  • 1,697
  • 3
  • 30
  • 43
0
votes
1 answer

Hyperjaxb3: Create lookup table from enumeration element

I have an xsd file which includes an element with an enumeration constraint:
Matt Read
  • 33
  • 6
0
votes
2 answers

Generate XSD schemas from an existing database or JPA entities

I have been using hyperjaxb tool to generate JPA entities and database scripts from XSD schemas. Now I want basically the inverse operation. How can I generate XSD schemas based on JPA anotated entities or database? I am using Maven, so any maven…
Alfredo A.
  • 1,697
  • 3
  • 30
  • 43
0
votes
1 answer

Adding columnDefinition property to Hyperjaxb generated @Column attribute

I am using Hyperjaxb to generate my JPA mappings. Then I use hibernate3-maven-plugin to generate the SQL Script of the database. My problem lies in the fact that I have a type that has a property defined like this:
Alfredo A.
  • 1,697
  • 3
  • 30
  • 43
0
votes
1 answer

Hyperjaxb3: How do I get it to use a superclass' id?

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…
0
votes
1 answer

Applying a patch from java.net

I have a problem with Jaxb enumerations that is related to this bug https://jaxb.dev.java.net/issues/show_bug.cgi?id=708 A patch has been supplied to the issue that can resolve the problem. How can I apply this patch to resolve my problem
Farouk Alhassan
  • 3,780
  • 9
  • 51
  • 74
0
votes
1 answer

Hyperjaxb3: Is it possible to avoid Items table/class creation on PO sample?

I'm trying to avoid join classes creation. I tested some binding configuration but can't seem to get it done. In PO Sample from git sources on tag 0.6.0 ejb/tests/po-customized, I tried some configuration. First, I added join-column as one-to-many…
0
votes
2 answers

hyperjaxb3 add extra columns (ie creation timestamp)

I'm trying to add an extra column, using binding file to a model obtained from a xsd (a big one). The added field need to be persisted, but not serialized. I tried with hj:generated-property but it does nothing with it. To give a sample of what I…
0
votes
0 answers

how to define many-to-one bi-directional relationship in xsd so that hyperjaxb3 can generate correct entity classes

I have to define a bi-directional many-to-one relationship in xml schema , which hyperjaxb3 is using to generate the entity classes. when I tried to reference both the entities within each entity declaration , class conversion throws an exception. I…
priyas
  • 415
  • 1
  • 8
  • 29
0
votes
1 answer

@LazyCollection(LazyCollectionOption.FALSE) in hyperjaxb?

How do I set a collection to be @LazyCollection(LazyCollectionOption.FALSE) in hyperjaxb? Here is the example: I have an xml node ab which can contain either a list of subnodes of type cd or a list of subnodes of type ef. Both cd and ef only…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
0
votes
2 answers

no persistence provider for EntityManager named persistence.xml

This is not a duplicate as the tag above purports. This question has not yet been answered. I am trying to set up this tutorial to get hyperjaxb to work in an eclipse project. How can I get it to see a persistence provider? hbm2ddl has NOT…
CodeMed
  • 9,527
  • 70
  • 212
  • 364