Joined: Sat Dec 21, 2013 2:04 pm Posts: 1
|
I am New to hibernate Please help me to understand this use case I have a doubt in hibernate. Regarding Lazy Initialization in Association Mapping.
In generally if we try to load a normal object using lazy loading it uses proxy object at run time to gather values from database
Now take this scenario in one to many Association Mapping if we use lazy initialization. the child class objects are initialized When we try to use them.
My doubt is:- I have taken bag data structure in hibernate(IN HB Mapping file), and in the parent class child class objects are saved in List Object.
What is the mechanism used for initializing child class objects at run time internally.
But in Many-to-One mapping parent class is initialized by at run time it is using proxy objects because it is a normal object
Please let me know the solution of this
|
|