-->
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: cascade SAVE_UPDATE events called when loading entity WHY?
PostPosted: Sat Oct 06, 2007 2:30 pm 
Newbie

Joined: Sat Oct 06, 2007 12:32 am
Posts: 1
I have a Parent/Child relationship with the following mapping for the child.

@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
@EditableProperty(collectionType = AutoComplete.class)
@Fetch(value = FetchMode.SELECT)
@OneToMany(mappedBy = "autoCompleteSet", fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST, CascadeType.MERGE})
@Sort(type = SortType.NATURAL)
private SortedSet<AutoComplete> mappings = new TreeSet<AutoComplete>();

When loading data I see SAVE_UPDATE events being called which do not result in any sql on the database, but, why are they being triggered in the first place? It's clear they are the result of the SAVE_UPDATE cascade but I have called neither save or update?

Can anyone explain?


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.