cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice - java.sql.Timestamp

Former Member
0 Kudos

Dear all,

I'm creating a webservice for a Bean that get a list of Entries through JPA.

Receiving the list of entries via the bean method works fine. Now i wanted to create a webservice for my bean. When my bean uses java.util.date, the webservice can be created an deployed, but my jpa is not working , because jpa needs java.sql.Timestamp or java.sql.Date ....

When i use java.sql.Timestamp in my entity classes, the jpa code is working fine, but deploying of webservice fails, although java.sql.Timestamp should be a supported type...

Any idea what's wrong here?

Kind regards,

J.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

this was solved by using java.util.Date in my entity classes, and using @temporal for the Date fields.