service « Entity « JPA Q&A





1. How to persist entity with two parents using hibernate and web service?    stackoverflow.com

I have the following entity structure (A, B, C, D are entities):

A-> one-to-many B, 
A-> one-to-many C,
B-> one-to-many D, 
C-> one-to-many D.
I want to persist entity A with hibernate but I ...

2. Netbeans apply code changes for webservices and entity    stackoverflow.com

Development being little hard because Netbeans's (7.0) "Apply Code Changes" feature doesn't work when the class is annotated with @Webservice (using JAX-WS 2.1.7). Just trying to change small piece of code ...

3. Passing entity objects through SOAP web services    forum.hibernate.org

I have a MySQL database with a few tables in it and have developed an API that uses hibernate to manage the data in the database. Everything is fine from a hibernate/database perspective. My problem lies in taking the objects that represent rows in a database and passing them back to the client via a SOAP message. I was wondering if ...

4. Problem with @Entity and JAX-WS @Webservice    forum.hibernate.org

I'm using a JAX-WS service with an entity, everytime I use te annotation @ManyToOne in this entity I get the following error: ERROR - ContextLoader.initWebApplicationContext(203) | Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inlineImplementor': Invocation of init method failed; nested exception is java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5 Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5 at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getBaseClass(ClassInfoImpl.java:171) at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:61) To prevent this from happening I use ...