does Cayenne creates objects by hisself?

From: WONDER (mmmmmmmmm5..eb.de)
Date: Sat Apr 22 2006 - 07:18:52 EDT

  • Next message: Mike Kienenberger: "Re: MySql AUTO_PK_SUPPORT"

    Hi,

    I have the folloging situation.

    Entity "User" has relation toMany "Visitor" its name is visitors.

    Usually if I "Fetch" the object Visitor from DB and then call

    visitor.user()

    Cayenne fetches the object User from the DB automatically.

    Now, creating a Visitor object.

    Visitor visitor = new Visitor();

    and calling

    visitor.user()

    will Cayenne here creates the object User automatically, or I have to do it by myself?

    Thanks.



    This archive was generated by hypermail 2.0.0 : Sat Apr 22 2006 - 07:18:43 EDT