Re: Empty Constructor

From: Jürgen Saar (jsaa..eb.de)
Date: Fri Jul 01 2005 - 04:02:57 EDT

  • Next message: Zvonimir Spajic: "Expression: NOT EXISTS... JOIN..."

    We solved this problem in the validateForSave,
    but this was pretty easy, because we in general work
    without null values, except on Date-types. So we allways put
    an empty value (mostly " " or 0) in all null-fields

    cayenne-use..bjectstyle.org schrieb am 30.06.05 20:57:00:
    >
    > If you haven't guessed by now, I'm trying to integrate Cayenne into a
    > new project here, thus all the questions ;-)
    >
    > I have a DataObject with some fields that I would like to be not
    > null. Typically, for such things, I'd force them to be passed into
    > the constructor to strengthen this commitment. So, I naively set
    > about doing that with my DataObject. Alas, it appears an accessible
    > empty constructor is necessary for retrieving things from the DB. Is
    > this in fact the case? I'd rather not have people instantiating the
    > no-arg constructor . . .
    >
    > --
    > Kevin
    _________________________________________________________________________
    Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle
    Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179



    This archive was generated by hypermail 2.0.0 : Fri Jul 01 2005 - 04:02:58 EDT