Regular |
 |
Joined: Wed May 05, 2004 3:41 pm Posts: 118 Location: New Jersey,USA
|
Though this is more of a design question I wanted the reccomedation. I can design persistent class in 2 ways:
1. Have private attributes similar to the Java bean convention
2. Have a HashMap and write suitable getter and setter methods that put or get from the map.
The advantage that I see is as follows:
1. Development time - Would be relatively less
2. If I add new columns I would just add new getters and setters with keys.
Which is a reccomended approach.
Thanks,
anand
|
|