This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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 ?
 
Don't get me started about those stupid light bulbs.
 
subject: Hibernate Newbie - Supply SOAP web service with data from database using Hibernate