struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <maurizio.cucchi...@gmail.com>
Subject Re: Reg: Issue with Struts 2 Data Binding
Date Wed, 27 Oct 2010 09:13:24 GMT
Since you have entities that share *date of birth *, Why don't you
consider using interface power?

You could modify your code in order to manage DOB, by implementing a
simple (f.e.) HumanBeing interface.
public interface HumanBeing{
Date getDateOfBirth();
void setDateOfBirth(Date);
}
}
Then you could change your collection in
Private *HashMap<String,HumanBeing>* userAsMap ;



2010/10/27 Sathish Kumar <sathishkumar.thiyagarajan@gmail.com>:
> Thanks ... Unfortunately, In my case, Map represents various java model
> classes at run time ( User, Employee etc ).

--
Maurizio Cucchiara

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message