Re: Problems fro begginer.

From: Mike Kienenberger (mkienen..laska.net)
Date: Wed Jul 28 2004 - 19:21:35 EDT

  • Next message: Andrus Adamchik: "Re: Integration with Spring Framework"

    Reinaldo Coelho Sartorelli <reinaldo_sartorell..ahoo.com.br> wrote:
    > Generos y = new Generos(con);

    You should use the following instead.

            Generos y = (Generos) con.createAndRegisterNewObject(Generos.class);

    Or (I have never used this method) you can use:

                    Generos y = new Generos(con);
                    con.registerNewObject(y);

    See
    http://www.objectstyle.org/cayenne/userguide/datactxt/statemanagement.html
    for more information.

    -Mike



    This archive was generated by hypermail 2.0.0 : Wed Jul 28 2004 - 19:21:00 EDT