Hi, guys!
I'm new in hibernate and have some problems. I'm using spring + hibernate in my project. I load list of some objects, as example groups, but over time i need to load a full list of accounts which belongs to this groups (like "select * from accounts"). There i have a problem: groups which i loaded first time aren't objects, which will loaded by hibernate when i'll call something like account.getGroup(), but they represents the same groups.
How i can merge this objects, or i need something like interceptor to say hibernate that this object already loaded and it must link account to it? Any advices will be helpfull.
|