hyperjaxb

upgrade hyperjaxb3 to jpa 2.1

风格不统一 提交于 2019-12-12 21:04:07
问题 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: javax.persistence.Table.indexes()[Ljavax/persistence/Index; I ran mvn dependency:tree on the root folder of the project and the problem seems to be that hyperjaxb3 is using JPA 2.0, which conflicts with JPA 2.1. Is there some way to get hyperjaxb3 to use JPA 2.1? Or is

How to set existing Id as primary key in HyperJaxb3 Cxf project, (code generation from wsdl)?

不羁的心 提交于 2019-12-12 15:54:07
问题 I am trying to redifine primary key to existing IDs, but with Apache CXF plugin generation from wsdl file. wsdl file is here - https://api.mindbodyonline.com/0_5/ClientService.asmx?wsdl my pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>MindBodyCXF</groupId> <artifactId>CXFSpring<

Hyperjaxb and Apache CXF

最后都变了- 提交于 2019-12-11 05:25:54
问题 I'm trying to use Hyperjaxb3 with Apache CXF to generate persistence annotations from a WSDL-first web service. I've plugged the Hyperjaxb3-ejb-plugin into the cxf-codegen-plugin, like so. <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>${cxf.version}</version> <dependencies> <dependency> <groupId>org.jvnet.jaxb2_commons</groupId> <artifactId>jaxb2-basics</artifactId> <version>0.5.2</version> </dependency> <dependency> <groupId>org.jvnet

order-column does not seem to work

扶醉桌前 提交于 2019-12-11 04:59:03
问题 I have defined my bindings in the following way <jaxb:bindings node="xs:complexType[@name='Parent']"> ........... <jaxb:bindings node="xs:element[@name='children']"> <hj:one-to-many name="children" fetch="EAGER"> <orm:order-column name="CHILD_PRIMARY_KEY"/> <orm:join-column name="PARENT_PRIMARY_KEY"/> </hj:one-to-many> </jaxb:bindings> </jaxb:bindings> But the generated class has OrderColumn annotation missing. i.e @OneToMany(targetEntity = Children.class, cascade = { CascadeType.ALL }, fetch

HyperJAXB and IDREFs

ⅰ亾dé卋堺 提交于 2019-12-11 04:55:23
问题 I have eventually managed to fiddle HyperJAXB so that when XSD has complexType A and this has an IDREF to complexType B, then HyperJAXB will generate @OneToOne JPA annotations between the the two generated entities. However now I'm facing another problem: the XSD has complex type X that can IDREF to either complex type Y or complex type Z. In the end, I need instance of complex type X contain reference to either instance of class Y or class Z. Do you have any wild ideas how can this be done

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

依然范特西╮ 提交于 2019-12-06 09:50:53
问题 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 @java.persitence.Table(name = "table_name"). I want to extend this annotation through an external global binding so that I can put the name of schema in it too. So that I would get @java.persitence.Table(name = "table_name", schema = "schema_name").

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

只谈情不闲聊 提交于 2019-12-04 16:21:36
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 @java.persitence.Table(name = "table_name"). I want to extend this annotation through an external global binding so that I can put the name of schema in it too. So that I would get @java.persitence.Table(name = "table_name", schema = "schema_name"). Is there a way to do this? What about globally putting a prefix in the name of the table: @java

Importing hyperjaxb purchase order tutorial into Eclipse

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 05:46:43
问题 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 the required packages when the Main class is in the build path, or I get a Launch Error: Section does not contain a main type when the Main class is not in the build path. So far, I have taken the following steps: Download zip Navigate to folder in

no persistence provider for EntityManager named persistence.xml

我们两清 提交于 2019-12-04 02:27:47
问题 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 created the table structure in the database yet. Is that why the app is not seeing a persistence provider? Or is it because the contents of persistence.xml in target/generated-sources are not accessible from the src/main/java directory in which my

persisting hyperjaxb-generated entities to mysql from eclipse

久未见 提交于 2019-12-02 15:39:31
问题 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 structure I should locate the Main.java and TestFunctions.java classes that I created to run the code from the tutorial link above. How can I alter my eclipse configuration to enable these things to happen? Here is my main.java: package maintest; public