> On this note, I wonder about validation of DataMaps in general.
> Currently the GUI does so on save, but I don't think it happens on
> load. Recently Andrus added some "partial loading with feedback" for
> within Modeller (with, IIRC, some nice object-structure for holding
> details of what was wrong). Perhaps this needs to be extended to work
> in a non-GUI, "production" environment. For justification, I see it as
> entirely reasonable for a user to make a change directly in the xml
> (perhaps it's a "small" change, or they don't have access to a GUI jre
> at the time). If they stuff that up, it'd be really nice if Cayenne
> pulled them up on it, rather than just toddling off into the never-never
> land of inconsistency :-)
>
Very good point! Such a validation could be much less expensive than
handling database exceptions and rollbacks. I am going to give some thought
to possibility of a referential integrity check during data map loading and
similar stuff.
Andriy.
This archive was generated by hypermail 2.0.0 : Sun Feb 02 2003 - 17:18:38 EST