Re: To Dep PK bug?

From: Michael Gentry (mgentr..asslight.net)
Date: Fri Nov 05 2010 - 13:30:27 UTC

  • Next message: Mark Fischer: "Re: Reengineer Database Schema not generating anything"

    It even fails if I include the dependent:

            DataContext dataContext = DataContext.createDataContext();

            User admin = dataContext.newObject(User.class);

            admin.setName("Administrator");
            admin.setUsername("admin");

            Avatar avatar = dataContext.newObject(Avatar.class);
            admin.setAvatar(avatar);

            dataContext.commitChanges();

            admin.setName("The Administrator");

            dataContext.commitChanges();

    Same issue. Both records get inserted this time (ID = 200). Then on
    the second commit the ID goes to null in the master (User) record.

    mrg



    This archive was generated by hypermail 2.0.0 : Fri Nov 05 2010 - 13:31:21 UTC