-->
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: teplicate() many-to-one relationship with cascade="non
PostPosted: Wed Apr 27, 2005 9:32 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
Using Hibernate 3.0.1


I am curious as to why the CascadeStyle NONE returns true for the doCascade() method when performing replicate() ?

Shouldn't the cascade="replicate" be required ?


from org.hibernate.engine.Cascades.java
Code:
   /**
    * no cascades
    */
   public static final CascadeStyle STYLE_NONE = new CascadeStyle() {
      boolean doCascade(CascadingAction action) {
         return action==ACTION_REPLICATE;
      }
      public String toString() {
         return "STYLE_NONE";
      }
   };


Thanks,
Preston


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.