-->
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.  [ 5 posts ] 
Author Message
 Post subject: V3: Is cascade="lock" legal for collections? docs
PostPosted: Wed Sep 28, 2005 1:35 pm 
Newbie

Joined: Wed Jun 08, 2005 3:12 pm
Posts: 6
I was getting a lazy init exception, and setting cascade="lock" on the collection seems to have fixed the problem, but the documentation doesn't list this as a valid cascade style. Is this just an oversight in the documentation?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 4:37 pm 
Senior
Senior

Joined: Tue Feb 08, 2005 5:26 pm
Posts: 157
Location: Montréal, Québec - Canada
I don't mean to be rude, but you should really post your exception stack trace as well as your mapping documents. It would make it a lot easier for us to help you :)


Also, post the code that executes and triggers this laxyInitialization exception.

Thanks.
Vincent.

_________________
Vincent Giguère
J2EE Developer


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 4:56 pm 
Newbie

Joined: Wed Jun 08, 2005 3:12 pm
Posts: 6
But a stack trace, etc is irrelevant. My question is whether cascade="lock" is valid for collections, because the manual doesn't list it as a valid option.

To reiterate, is cascade="lock" valid for collections?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 5:06 pm 
Senior
Senior

Joined: Tue Feb 08, 2005 5:26 pm
Posts: 157
Location: Montréal, Québec - Canada
Well, you talked about a lazy exception. There might have been a way to find a solution to your problem that excluded making use of non documented cascading events.

But if this is irrelevant to you, that's fine with me.

_________________
Vincent Giguère
J2EE Developer


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 8:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Look under cascades.java in the engine package. You will find (depending in the version) the info you are after; eg, code fragment
Code:
      STYLES.put("all", STYLE_ALL);
      STYLES.put("all-delete-orphan", STYLE_ALL_DELETE_ORPHAN);
      STYLES.put("save-update", STYLE_SAVE_UPDATE);
      STYLES.put("create", STYLE_CREATE);
      STYLES.put("merge", STYLE_MERGE);
      STYLES.put("lock", STYLE_LOCK);
      STYLES.put("refresh", STYLE_REFRESH);
      STYLES.put("replicate", STYLE_REPLICATE);
      STYLES.put("evict", STYLE_EVICT);
      STYLES.put("delete", STYLE_DELETE);
      STYLES.put("delete-orphan", STYLE_DELETE_ORPHAN);
      STYLES.put("none", STYLE_NONE);


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