Declare the dob field as:

@Temporal(TemporalType.Date)
private (java.util.)Date dob;

Op 19-3-2012 14:02, schreef Alok Pathak:
I have an application in Wicket 1.4, where i am using JPA. I declared an
entity (Customer) with property *dob* of type *java.sql.Date*.
Now i want to migrate that application in Wicket 1.5, When I submit the
registration form of the customer I get the exception: *java.util.Date
cannot be cast to java.sql.Date*
Kindly Help
Thanks
Alok Pathak


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/java-util-Date-cannot-be-cast-to-java-sql-Date-tp4484703p4484703.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to