Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Discussion - Date/Time POJO property - String or java.util.Date

800336Dec 8 2010 — edited Dec 9 2010
Hi,

I always wonder how date/time should be declared in POJOs - String or java.util.Date. I have used both and always felt comfortable with String but still would like to know your views. (In DB datatype is datetime).

I know some of you will say "as per requirement" but what I have experienced we never give too much thought and when we have issues down the line we start wondering.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 6 2011
Added on Dec 8 2010
14 comments
2,657 views