aspose file tools*
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
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
Author

Regarding Using Hashmap in Entity Bean 2.x

suman paul
Greenhorn

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
kingshuk



make me
Sunil Sahu
Greenhorn

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding Using Hashmap in Entity Bean 2.x
 
Similar Threads
Best ORM
ejb 2.0 migration
Some doubts with transactions(Please help).
My SCEA Part 1Study Notes
Passed Part One with 87%