-->
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.  [ 4 posts ] 
Author Message
 Post subject: Component in a component; update problem
PostPosted: Mon Sep 06, 2004 11:02 am 
Senior
Senior

Joined: Sun Mar 14, 2004 10:16 am
Posts: 129
Location: Ankara
Hi all,
I have something like this;

<component name="x" class="X" update="false">
<component name="ys" class="Y" >
<property name="y1" column="Y1" />
<property name="y2" column="Y2" />
</component>
</component>

here I cant prevent update, because I couldnt write update="false" to inner component definition;
What should I do to prevent updates?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 06, 2004 12:12 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you can write update="false" in nested components

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 07, 2004 4:15 am 
Senior
Senior

Joined: Sun Mar 14, 2004 10:16 am
Posts: 129
Location: Ankara
How can I stop Hibernate to reflect changes to db (update queries) each time I changed the object?

I dont want any update or insert queries, I only want hibernate to go, get data, then go to sleep and wake up when I want to get another data.

_________________
-developer


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 07, 2004 5:46 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
session.evict()
session.setFlushMode(FlushMode.NEVER)
session.close()
...


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