wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Regarding Using Hashmap in Entity Bean 2.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Regarding Using Hashmap in Entity Bean 2.x" Watch "Regarding Using Hashmap in Entity Bean 2.x" New topic

Regarding Using Hashmap in Entity Bean 2.x

suman paul

Joined: Feb 19, 2003
Posts: 19
Take a big Entity bean like it has 100 attributes may be some financial appl.In some case an Entity Bean (ejb 2.x) can have 100 attributes.For those many getters and setters are not possible to write For that we may need a D.S like map to be passed and try to work in entity bean.Now the abstract schema in ejb 2.x CMP does not support settter/getter to take a map and work around it. In BMP it can be managed.
So only way to work D.S like map is usage of refelction as in web-site somewhere it was mentioned but not
with example exactly how?
Could anyone kindly give a code snippet for that portion working with D.S like Hashmap for too many
attributes and exactly how do you resolve this problem w/o taking help of BMP.Do you model it in other
way or if you are looking for reflection how do you go about it ? Kindly send that block of code in both
the case in
1) Using refection
2) If you model it diff way
thanx and best regards

make me
Sunil Sahu

Joined: Feb 18, 2003
Posts: 5
Use bulk accessor to set and get values using ValueObject or Data bean

System Architect,<br />Impetus Infotech P. Ltd,<br />Indore, India
It is sorta covered in the JavaRanch Style Guide.
subject: Regarding Using Hashmap in Entity Bean 2.x
Similar Threads
My SCEA Part 1Study Notes
Passed Part One with 87%
ejb 2.0 migration
Best ORM
Some doubts with transactions(Please help).