I am generating a web service in Java with Eclipse IDE that has a class with methods that query the database through Hibernate mapped DAOs. If I create the web service without using all the Hibernate types (as a parameter passed to methods or a return type) it succeed, If I try to use all my Hibernate beans in order to have them mapped it fails. anyone faced this problem before?
The problem is I dont have all the Hibernate objects mapped in the web service. of course not having some they are underfined when I need to use them from by a client that uses the service.
Anyone faced this problem?
Thanks, I appreciate any help…
Problem solved by adding
@XmlJavaTypeAdapter( TimestampAdapter.class)BUT by creating the TimestampAdapter class having it returning ajava.util.Dateinstead ofjava.sql.Date