-->
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.  [ 3 posts ] 
Author Message
 Post subject: hbm.xml file changes are not reflecting
PostPosted: Sat May 17, 2008 5:39 am 
Newbie

Joined: Sat May 17, 2008 5:25 am
Posts: 1
Hi All

When ever i called parent object it loads the array of child object also .so i used lazy=true option to lazy load the child object . but none of the hbm.xml changes are not reflected in the console

please need your valuable suggestions to fix this problem

Thanks in advance
Chandru


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 17, 2008 9:13 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Just a clarification:

You say "parent." Is this implemented in your code through the use of the word "extends?" If so, which inheritance mapping strategy are you using: TABLE PER, Joined, or SINGLE table?

More on inheritance mapping strategies:
http://www.hiberbook.com/HiberBookWeb/learn.jsp?tutorial=16mappinginheritancewithjpa

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 19, 2008 1:09 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
Guess you are using a collection to represent the relationship between the entities and u have one to many relationship.

Quote:
but none of the hbm.xml changes are not reflected in the console


What are you getting in the console that makes you feel lazy loading isn't working? Can you post your console output please?

Can you also post you code between the session open and close. I would like to see every single line of code including any system.out.println()s you have... I mean do not modify anything in the posted code. I am telling you this because even a sysout of your core entity can initialize the collection within the core entity. So please post the complete code between session open and close.

_________________
Sukirtha


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

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.