Re: Object-relational impedence

From: TroyK <cs_troyk_at_juno.com>
Date: Mon, 10 Mar 2008 15:07:12 -0700 (PDT)
Message-ID: <049b1a50-837c-41b2-9b0d-b3c1d155a84d_at_p25g2000hsf.googlegroups.com>


On Mar 10, 3:56 pm, TroyK <cs_tr..._at_juno.com> wrote:
> On Mar 8, 7:09 am, rp..._at_pcwin518.campus.tue.nl (rpost) wrote:
>
>
>
>
>
> > TroyK  wrote:
> > >Who said anything about stored procedures? I'm talking about
> > >implementing the business rules via constraint declaration in the
> > >database, and deriving new values throught the application of SQL
> > >queries.
>
> > Do you also treat dynamic constraints in this way?
>
> > E.g. "unless otherwise specified, an employee shall get a 2%
> > salary increase after each full year of employment".
> > Or: "two movable 3D shapes shall never collide; collision is avoided
> > by the following repositioning algorithm that is guaranteed
> > to pull all objects apart that get too close: (...), however, this
> > algorithm may be replaced with another that has the same property".
>
> > --
> > Reinier
>
> Inferring the definition of "dynamic constraint" from your examples,
> in the first, I think that it would be sufficient to model and record
> whatever attribute means "otherwise specified" and include that as
> part of the condition in the constraint declaration.
>
> I haven't had occasion to apply the technique to anything more complex
> than such an example, so I'll have to say "I don't know" to the 3D
> example.
>
> TroyK- Hide quoted text -
>
> - Show quoted text -

Sorry to self-reply, just wanted to state that the generalism behind what I'm trying to describe is to implement exceptions to the rule as nothing more than another rule.

TroyK Received on Mon Mar 10 2008 - 23:07:12 CET

Original text of this message