Re: basic date field question

2005-08-25 Thread Gareth Evans
PROTECTED] Sent: Thursday, August 25, 2005 12:28 PM To: Struts Users Mailing List Subject: Re: basic date field question A slight tweak to that... StudentVO(){ private Date birthDate; public long getBirthDate() { return birthDate.getTime(); } public java.util.Date getBirthDateAsDate

RE: basic date field question

2005-08-25 Thread Rivka Shisman
Users Mailing List Subject: Re: basic date field question A slight tweak to that... StudentVO(){ private Date birthDate; public long getBirthDate() { return birthDate.getTime(); } public java.util.Date getBirthDateAsDate(){ return birthDate; } Why? Because this way two subsequent

Re: basic date field question

2005-08-25 Thread Gareth Evans
A slight tweak to that... StudentVO(){ private Date birthDate; public long getBirthDate() { return birthDate.getTime(); } public java.util.Date getBirthDateAsDate(){ return birthDate; } Why? Because this way two subsequent calls to 'getBirthDateAsDate' will return the same obj

Re: basic date field question

2005-08-25 Thread Leon Rosenberg
On Thu, 2005-08-25 at 12:34 +0200, Rivka Shisman wrote: > Hi friends > Shalom, > > > 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 > conver