jaxb « Development « JPA Q&A





1. Request/Response objects    stackoverflow.com

I'm planning on using CXF's rest implementation. I'm thinking of simply annotating my entity classes with jaxb annotations, such as @XmlRootElement, in order to create response objects. The benefit being avoidance ...

2. HyperJAXB and IDREFs    stackoverflow.com

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 ...

3. Hyperjaxb and Apache CXF    stackoverflow.com

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>
 ...

4. Web services and hibernate - how would you combine these two?    stackoverflow.com

I would like to use hibernate for persisting objects through web services and am thinking of using hyperjaxb3 with Apache CXF. Do you have any other suggestion for this purpose? Edit: To ...

5. Combining JAXB and JPA in one model    stackoverflow.com

I have to design a data model (in a Java EE 6 application) that will be persisted via JPA, and that also needs to be serialized via JAXB. The last time ...

6. REST and JAVA JPA    stackoverflow.com

I am trying to understand the code of some project which is not properly documented.Am the only developer working on the task.I dont have much experience. There is a data model and ...

7. Problem with JAXB and Hibernate3 illegal access    stackoverflow.com

I'm migrating a system from hibernate2 to hibernate 3 and i'm getting the following error:

java.lang.IllegalAccessError: tried to access method com.sun.xml.bind.DatatypeConverterImpl.<init>()V from class com.sun.xml.bind.DefaultJAXBContextImpl
 at com.sun.xml.bind.DefaultJAXBContextImpl.<init>(DefaultJAXBContextImpl.java:73)
 at com.sun.xml.bind.ContextFactory.createContext(ContextFactory.java:39)
I have already searched in ...

8. hibernate & JAXB/JSON (Message Model & Data Model)    stackoverflow.com

This is a design philosophy question on how closely to bind your message exchange to your data model. Given an entity pojo, I can annotate it with Hibernate, JAXB and JSON annotations ...

9. Any special considerations while converting hibernate objects directly to XML    stackoverflow.com

I'm trying to convert to list of hibernate objects to XML using JAXB. Are there any special considerations OR any reasons a list of hibernate objects with one to many relationship ...





11. Combine JAXB + JPA?    coderanch.com

I am creating REST services to insert users into a database using JERSEY, JAXB, and JPA. I am new to all 3 technologies... Currently I am accepting a JAXB user object. Converting to a JPA user object using a helper class I wrote Then persisting the JPA user @POST @Consumes(MediaType.APPLICATION_XML) public Response addUser(JAXBUser jaxbUser) { try { JPAUser jpaUser = JpaJaxbConverter ...

12. Proxy and JAXB    forum.hibernate.org

13. JaxB Problem...DiplomaWork. Need Help    forum.hibernate.org

Hi, i have a big Problem working with Binding Tools. I have tried to get Jaxme and JaxB but they couldnt compile the Hibernate-mapping.2.0.dtd. I also tied to compile the xsd-File of an hibernateUser under http://opensource2.atlassian.com/projec ... ge=history But that didnt work too. I geht Error like: [xjc] [ERROR] Property "Column" is already defined. [xjc] line 930 of file:/C:/Dokumente%20und%20Einstellungen/Chef/workspace/JaxB/hibernate-mapping-2.0.xsd [xjc] [ERROR] ...