File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Hibernate Newbie - Supply SOAP web service with data from database using Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Newbie - Supply SOAP web service with data from database using Hibernate" Watch "Hibernate Newbie - Supply SOAP web service with data from database using Hibernate" New topic
Author

Hibernate Newbie - Supply SOAP web service with data from database using Hibernate

Glen Iris
Ranch Hand

Joined: Jul 13, 2011
Posts: 164

Hey folks,

I have configured a SOAP web service using Spring and xsd's. It is fairly simple, My service hits a class with hard coded values which get returned to the caller of the SOAP service.

I would now like to have that hard coded class read from a database. But I would like this to be configured with Hibernate. So I know I need to annotate the class, its properties and its methods with Hibernate specific tags like @column. However, when I do this (type the annotations in the class file) and compile the application, these annotations get overwritten as the Class is being generated by an xsd.

My question:

How do I adapt my xsd to also include Hibernate annotations?


OCPJP 6, OCMJD
Glen Iris
Ranch Hand

Joined: Jul 13, 2011
Posts: 164

no help ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate Newbie - Supply SOAP web service with data from database using Hibernate