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.
How do I adapt my xsd to also include Hibernate annotations?