Re: enforcing uniqueness

2008-08-28 Thread Malcolm Tredinnick
Hi Robin, On Thu, 2008-08-28 at 12:55 +0100, Robin Becker wrote: > My boss, created a model that represents an override to parts of other model > instances; Man, I gotta remember to use the "don't shoot me; my boss did it" reasoning some time. :-) > the business logic demands that the model

enforcing uniqueness

2008-08-28 Thread Robin Becker
My boss, created a model that represents an override to parts of other model instances; the business logic demands that the model instances should be uniquely defined by two attributes a and b ie o1.a==o2.a and o1.b==o2.b <==> o1 is o2. I know that we can implement validation rules in the