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
|