Questions tagged [hyperjaxb]

HyperJaxb3 adds JPA annotations to jaxb classes.

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

101 questions
0
votes
1 answer

persisting hyperjaxb-generated entities to mysql from eclipse

I am setting up hyperjaxb to run in eclipse using this tutorial. So far, I have gotten it to marshal and unmarshal, but it does not yet trigger hbm2ddl to create the tables in the database, and it is not clear where in the eclipse directory…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
0
votes
2 answers

Importing hyperjaxb purchase order tutorial into Eclipse

I would like to import the sample app from this tutorial into eclipse. I keep getting errors related to where the files get placed. When I create a Main class to run the code in the tutorial, I either get compilation errors from Eclipse not seeing…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
0
votes
1 answer

JAXB always marshalls extension - unable to get elements of a super type only

I'm stuck on a problem with JAXB / Spring Web Services. Below is the detailed description. I appreciate any suggestion that could help me to solve it. I can provide more if details if needed. I am writing a web service that returns list of some…
Bartek
  • 169
  • 9
0
votes
1 answer

HyperJAXB: How to use always @OneToOne instead of @ManyToOne

HyperJAXB generates @ManyToOne Annotations for XSD 1:1-relationships like: or This is not the expected behaviour since it…
Martin Dames
  • 264
  • 3
  • 13
0
votes
1 answer

How to add @XmlTransient annotation with XJC for properties

I have an XSD and want to mark some properties as XmlTransient, so that the properties will be generated in Java by XJC and ignored by marshalling and unmarshalling by JAXB. I can modify the XSD and dont know what I should put into xs:annotation tag…
Martin Dames
  • 264
  • 3
  • 13
0
votes
2 answers

HYPERJAXB - DTYPE column length increase and table_name formed very length

I am using HYPERJAXB-3 -customized-toplink and facing following two problems. Please provide your suggestions to solve. my XML elements : Eg: GeneralPref.CustomPref.Tradepref 1) TABLE/constraints names are generated with very lengthy name(oracle…
user1380579
  • 21
  • 1
  • 5
0
votes
1 answer

How do I tell hyperjaxb3 what to use as primary key?

I'm working on a project to import a bunch of xml into a mysql database. I found the tool hyperjaxb3 that works as a maven plugin and generates jpa / jaxb annotated java classes that I can use to marshal xml and suck it in, but it creates its own…
specialK
  • 11
  • 2
0
votes
1 answer

hyperjaxb3 0.5.6 customization does not annotate id with @GeneratedValue

I want to customize my hyperjaxb3 generated classses by marking an existing property as a generated identifier with hj:generated-value tag . In my bindings.jxb file I mark the id of Status as identifier, but the generated entity is not annotated…
ilke
  • 1
  • 2
0
votes
1 answer

Hyperjaxb/lombok : how to force Hyperjaxb generate annotations mapping on attributes and not on the methods?

I would like jpa annotations on my attributes, not on getter and setter. It is possible to configure hyperjaxb for this ? I want this because I use lombok in order to avoid getter and setter code and have "@getter" "@setter" above attributes. thank…
maxiplay
  • 427
  • 1
  • 5
  • 13
0
votes
1 answer

Ignoring Datasource during roundtrip test with hyperjaxb

I'm using Hyperjaxb 3 with maven to generate java classes from an xsd. In order to specify the datasource used in the AS, I configured a custom persistence.xml template using the persistenceXml setting in the plugin-configuration…
Gregor
  • 28
  • 7
0
votes
1 answer

using jaxb, hyperjaxb3, jpa2, jts, hibernate-spatial, postgis fails when hyperjaxb marks the JTS Point getter as @Transient

My coworkers lament my adherence to code generation, but I'm determined to prove this particular chain can be done. Examples below are simplified from my project (and thus untested as typed); I will create a test harness soon. Currently using…
1 2 3 4 5 6
7