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.thiyagara...@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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org