default value from the modeler ?

From: Arnaud Garcia (arnau..magemed-87.com)
Date: Wed Apr 14 2010 - 08:28:56 EDT

  • Next message: Joe Baldwin: "Re: Understanding Weak Reference Behavior"

    Hello,

    Is it possible to add default values using the modeler ?

    if not, the good way is to overide the setPersistenteState ?

    thanks,

    arnaud

    public class SomeObjEntity extends _SomeObjEntity
    {
      public void setPersistenceState(int state)
      {
        super.setPersistenceState(state);

        // if the object was just created, set initial values
        if (state == PersistenceState.NEW)
        {
           // Set all initial values here
        }
      }
    }



    This archive was generated by hypermail 2.0.0 : Wed Apr 14 2010 - 08:29:47 EDT