Re: violates not-null constraint question.

From: Mike Kienenberger (mkienen..mail.com)
Date: Sun Mar 12 2006 - 16:24:42 EST

  • Next message: Andrus Adamchik: "[ANN] Cayenne entered Apache incubator"

    On 3/12/06, Joshua Pyle <joshua.t.pyl..mail.com> wrote:
    > Mike makes a point that I had trouble seeing when I first started
    > using ORM's. In order to use the default values the ORM would havre
    > the object and then read it evry time and insert or update was
    > performed. This would cause slowdown and inefficiency.
    >
    > In the end default database values and an ORM just don't mix.

    And it's not like I came up with this brilliant thought on my own
    either -- I also thought I should be able to use DB default values
    when I first started using ORMs. I also had to have it explained to
    me as well :) The same thing applies to auto-increment db-side
    generated primary key values, although Andrus (and others) have worked
    out the methodology to "read-back" that db-side generated value.

    -Mike



    This archive was generated by hypermail 2.0.0 : Sun Mar 12 2006 - 16:24:44 EST