I have an object that has a collection which can contain many objects (let's say 30,000 or so). I need the ability to pull one instance by id from the collection for display on the UI. I'd originally thought that using filtered collections might be the way to get that done but Hibernate filters are a bit more course-grained than that.
The contained collection is already lazily loaded which, as I understand it, already creates proxies that contain the ids. Would the normal Hibernate idiom be to find the instance by id from the proxies and simply call another method on the found instance to get Hibernate to load the instance information from the database? If that isn't the way to do it, am I simply missing the "correct" way to do it?
thanks a ton,
phayte
|