struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rivka Shisman" <ri...@nite.org.il>
Subject basic date field question
Date Thu, 25 Aug 2005 10:34:41 GMT
Hi friends

 

I'm puzzled with a basic design problem:

 

I have a VO - say StudentVO - that has a property -> birth_date.

 

Should the birth_date property be of type String (and then in the DAO
convert it to java.sql.Date)  - 

OR - Should it be of type Date and if so - what kind of Date
(java.util.Date or java.sql.Date - most standard classes like
SimpleDateFormat work with java.util.date but that means another
conversion to java.sql.Date later in the DAO).

 

I'm very interested in your opinion

 

Thanks a lot

Rivka

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message