-->
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.  [ 2 posts ] 
Author Message
 Post subject: enormous number of calls to a
PostPosted: Thu Jan 18, 2007 5:19 am 
Newbie

Joined: Thu Jan 18, 2007 4:58 am
Posts: 2
i'm sorry that i can't provide too much information, i'm just hoping that someone give me a hint because he/she had similar problems.

the data model is quite complex, i can just outline the important parts:

Product -> (one-to-many) -> SubProduct -> (one-to-many) -> SalesDetails -> (one-to-many) -> PriceDetails

e.g., i would like to store 1 product with 1 SubProduct with 400 SalesDetails and 1 PriceDetails per SalesDetail.
after the creation of the object tree it is stored via Session.saveOrUpdate(x)

the profiler shows me that the correct number of objects is created, but SalesDetails.getPriceDetails is called (in this case) 1000x more often than expected. in production environment this is a big problem, because there are of course products with many more SalesDetails.

please don't attack me that i can't provide more information, just don't answer in this case.

edit: i'm using windows xp, java 1.4, hibernate 3.05, database is oracle 9.2.0.6.0


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 18, 2007 6:58 am 
Newbie

Joined: Thu Jan 18, 2007 4:58 am
Posts: 2
fixed. problem were erroneous implementations of hashcode() and equals()


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.