how to declare datetime datatype in mysql in a normal pojo class
- by Rajesh
How to declare datetime datatype in normal java class
Example:
I have one SampleUser table, in that for UpdateDate column I declare datatype as datetime,
for this table I need to create a pojo class, so how I have declare datetime datatype in Java-bean ??
class User
{
/* shall we use java.sql.Timestamp for **UpdateDate** field........? */
private Timestamp updateDate;
}
this Syntax is correct??