On Tue, May 5, 2009 at 1:02 PM, Kent Sølvsten <[email protected]> wrote: > Sounds great. > I am just wondering whether it would be better/possible to replace the > MergeResolver with some validation thingy on each entity (throwing > exceptions if validation fails)? > The common merge resolver would probably just assert that state is valid and > fail otherwise. Maybe this could be expressed as some advanced constraints > on the entities themselves (constraints concerning several > properties/entities)?
Disagree. A simple MergeResolver may be; "Take Theirs", "Take Ours" and "Merge" (similar to an SCM), but more complex ones could throw the issue to the end user, and ask for resolution. Validation is a separate issue, still important though. Cheers -- Niclas Hedhman, Software Developer http://www.qi4j.org - New Energy for Java I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

