Discussion - Date/Time POJO property - String or java.util.Date
800336Dec 8 2010 — edited Dec 9 2010Hi,
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.