5,6) are just fine but I believe point 4) is not necessary as this kind of
rule is never enforced in databases. Surely it is good and convenient
practice to define primary keys yet nothing more than that. Or do you think
the main parts of Cayenne will malfunction in the case a table does not have
a primary key? Aside from that views or results of stored procedures,
generally speaking, do not have primary keys :). What's your opinion?
Andriy.
----- Original Message -----
From: "Andrus" <andru..bjectstyle.org>
To: <cayenne-deve..bjectstyle.org>
Sent: Wednesday, February 06, 2002 5:33 PM
Subject: Re: DataMap validation rules
> I just thought of 3 more:
>
> 4) All DbEntities must have at least one primary key attribute defined
>
> 5) DbAttributes must have their database type defined
>
> 6) ObjEntities and ObjAttributes must have their Java class (type) defined
This archive was generated by hypermail 2.0.0 : Wed Feb 06 2002 - 17:49:00 EST