DataObject tha contain other DataObject

From: Pirola Davide (davide.pirol..tin.it)
Date: Fri Jan 21 2005 - 08:42:43 EST

  • Next message: McDaniel, Joe: "Re: Need Help: Cayenne Freezes"

    Hi,
    another question:
    is possible to fill a bean (data object) made in this manner:
    ----------------------------------------------------------
    public class MyTypeImpl extends org.objectstyle.cayenne.CayenneDataObject
    {

      public String getMySimpleField()
      {
            return (String) readProperty("MySimpleField");
      }

      public void setMySimpleField(String mySimpleFieldValue) {
            writeProperty("MySimpleField", mySimpleFieldValue);
      }

      //HERE THE PROBLEM
      public MyType2Impl getMyType2Field()
      {
            return (MyType2Impl) readProperty("MyType2Field");
      }

      public void setMyType2Impl(MyType2Impl myType2FieldValue) {
            writeProperty("MyType2Field", myType2FieldValue);
      }

    }
    ----------------------------------------------------------
    where "MyTypeImpl" and "MyType2Impl" are CayenneDataObject.
    How i map this to my datamap xml file?

    Thank's
    Davide



    This archive was generated by hypermail 2.0.0 : Fri Jan 21 2005 - 08:42:09 EST