-->
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: Cached values in one-to-many collection?
PostPosted: Fri Jul 10, 2009 7:02 am 
Newbie

Joined: Thu Feb 07, 2008 6:48 am
Posts: 14
Hello,

1. I query ALL customers out of my database joined with its orders.
My domain is filled up correctly.
Every customers has n orders...

2. Afterwards, I query the customers having an order with name = "Tat%".
The query returned from the database is correct [i checked it]. It returns all customers joined with the orders having a name "Tat%";

BUT my customer.Orders set is not updated. It still contains ALL orders from the first query...

3. When I run the second query as the first query [I skipped the query to load all customers and all respective orders] the domain customer.Orders
are correctly filtered.

Any idea what makes this happen?

Regards,
M


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.