how to declare datetime datatype in mysql in a normal pojo class
Posted
by
Rajesh
on Stack Overflow
See other posts from Stack Overflow
or by Rajesh
Published on 2012-12-12T13:54:32Z
Indexed on
2012/12/14
5:04 UTC
Read the original article
Hit count: 221
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??
© Stack Overflow or respective owner