Re: java.util.Date cannot be cast to java.sql.Date

2012-03-23 Thread Alok Pathak
Kindly Help -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-util-Date-cannot-be-cast-to-java-sql-Date-tp4484703p4498860.html Sent from the Users forum mailing list archive at Nabble.com. - To

java.util.Date cannot be cast to java.sql.Date

2012-03-19 Thread 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

Re: java.util.Date cannot be cast to java.sql.Date

2012-03-19 Thread Martin Grigorov
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

Re: java.util.Date cannot be cast to java.sql.Date

2012-03-19 Thread Bas Gooren
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

Re: java.util.Date cannot be cast to java.sql.Date

2012-03-19 Thread Alok Pathak
That is ok* Declare the dob field as: @Temporal(TemporalType.Date) private (java.util.)Date dob; * But why not this in wicket 1.4. I am pasting my code *Book.java ## import java.sql.Date; ... private Date publishDate; META-INF/persistence.xml