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
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
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
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
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