5 Replies Latest reply on Aug 8, 2011 8:10 AM by Luca Cavagnoli

    Flushmode.MANUAL still persisting

    lucius yu Newbie

      I've got a form where when first loaded, a parent is retrieved from the PC.  This Parent has a list of children.  The expected behavior is, when I click add, a new Child() object is added to the parent.getChildren().  So the screen will show a blank child in the form of a text field bound to the child's name, the name is a required field in the db.
      
      my conversation start with @Begin(join=true,flushMode=FlushModeType.MANUAL)
      
      So when I click the action to add the new child to the list, I expect it to not worry about the chil'd name being null, but it does, causing the following error:
      
      Caused by: org.hibernate.PropertyValueException: not-null property references a null or transient value: org.bla.child.name
      
      Seems like flushing is happening!  Even if I change the setting in component to make manual flushing to be default in conversations.  please help!