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
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
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
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
4 matches
Mail list logo