Contributor |
 |
Joined: Thu Nov 06, 2003 9:49 pm Posts: 104 Location: New York, NY
|
So, you want a Map of object by their primary key eh?
You are probably using the map to find objects by their id, right? You should think about re-writing your code so you don't use Map to look up objects by their ids. This is redundant because Session.get() does this, and so should your DAOs. Map just isn't the right way to do this. I've had to refactor a lot of code that does things this way... it's really not a good idea.
|
|