Questions tagged [hyperjaxb]

HyperJaxb3 adds JPA annotations to jaxb classes.

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

101 questions
1
vote
1 answer

HyperJaxb - Any way to exclude xml schemas which are imported in included schemas?

Here's my problem: I have two .xsd files, let's call them a.xsd and b.xsd. What I want to achieve is to generate all the classes from a.xsd excluding the classes in b.xsd. Now the problem is, that a.xsd references a type in b.xsd (via a ), so even…
helpermethod
  • 59,493
  • 71
  • 188
  • 276
1
vote
1 answer

How can I get hyperjaxb3 to generate specific JPA tags?

I'm trying to get hyperjaxb3 to generate specific tags like @Index, but I've been unable to find documentation or examples on how to achieve this. Any pointers or suggestions would be highly appreciated. Thanks Frederik
Frederik
  • 45
  • 5
1
vote
1 answer

XSD to JAXB file and JAXB to JPA entity class with database relationship

I am trying to create JPA entity classes from xsd files. I convert xsd files to JAXB files using xjc command. But i can't convert JAXB to JPA entity classes. I can't use the hyperJAXB because most of the links are broken and i didn't find any…
1
vote
1 answer

Hyperjaxb3 naming strategy change between 0.5.6 and 0.6.2

We have a significant code base that utilizes Hyperjaxb3 to annotate Java classes that are generated using xjc (along with other xjc plugins, including one that is home-grown). We are in the process of trying to upgrade from Hyperjaxb3 0.5.6 to…
Rob
  • 6,247
  • 2
  • 25
  • 33
1
vote
0 answers

Customizing column names of @Embedded attributes in Hyperjaxb

When using attributes with @Embedded the columns are named after a specific pattern which does not line up to my specific target database, thus I want to customize the generated name of the table. In my specific use-case I cant change the schema and…
Jonku
  • 383
  • 3
  • 7
1
vote
0 answers

Hyperjaxb: Override cascade for an element in a complexType

I'm using the default cascade options Hyperjaxb assigns. However, there is an exceptional case where I need to override. Suppose I have a type defined as follows:
deterjan
  • 348
  • 3
  • 16
1
vote
0 answers

Unable to set the column length for a complexType

I have an issue in that I cannot figure out how to customise the column length of the content of a ComplexType using an entry in a bindings.xjc file. The Complex Type is defined as:
user7240632
1
vote
1 answer

hyperjaxb Inline Customizations issue for ignoring hjid

I have the requirement to ignore the auto generated hjid in my JPA annotated java pojos. I can get this working using external binding, but when I try to do the same thing using JAXB Inline Customizations, it still create the hjid. What I am missing…
AshDDN
  • 35
  • 4
1
vote
1 answer

HyperJaxb3 - XSD to JPA on Java 1.8: dependencies

I am trying to use HyperJaxb3 for generating JPA compatible classes from XSD. Here my questions: Is the framework compatible with java 1.8? Where can I take a running sample of both maven and ant? It seems that original site has been deprecated and…
1
vote
1 answer

Specify UUID generated Id field with Hyperjaxb3

I am generating classes out of xsd schemas. I can't figure out how to tell that an object identifier should be a UUID generated in program. My error is: Hibernate: select nextval ('hibernate_sequence') org.hibernate.id.IdentifierGenerationException:…
fedd
  • 880
  • 12
  • 39
1
vote
2 answers

hyperjaxb3 xsd:string length in JPA entity

I use Hyperjaxb3 to generate JPA entities from XSD schema. I have a xsd:string type that I want to use for description text (text area in the UI):
padis
  • 2,314
  • 4
  • 24
  • 30
1
vote
1 answer

use fully qualified names in hyperjaxb3 generated java classes

I have generated .java classes from the hyperjax3 which are already annotated with Annotations like @Entity and @Table etc.." In @Entity the class name is automatically added as follows: @Entity(name = "MyClassName") But I want this name field to…
Saurabh Bhoomkar
  • 595
  • 1
  • 9
  • 29
1
vote
1 answer

Editing the name parameter of @java.persitence.Entity through external jaxb-Binding

I have the following constellation: B1.xsd and B2.xsd both import A.xsd. Using maven-hyperjaxb3-plugin I created Java classes with JPA annotations for both B1.xsd and B2.xsd. So the classes of A.xsd are created in the project of B1.xsd as well es in…
Erzen
  • 169
  • 10
1
vote
1 answer

Hyperjaxb ignoring customization in binding.xjb

I'm using hyperjaxb3 and it's solving most of my issues successfully. However, I've spent the whole morning with a problem that I'm not able to solve. Most probably, is one of those silly and stupid things that I'm completely overlooking, but I'm…
Ivan Clavijos
  • 163
  • 1
  • 7
1
vote
1 answer

hyperjaxb3 : Enumeration questions

I am trying to use hyperjaxb3 to create a relational schema from the three .xsd (C14054.xsd, C14054CodeLists.xsd & C14054DataTypes.xsd) available here and then marshal data from XML <-> Java <-> Relational. hyperjaxb3 has already done a better job…
pieman
  • 26
  • 3