-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Regarding Lazy Initialization of Association Mapping
PostPosted: Sat Dec 21, 2013 2:10 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.