On Wed, Feb 18, 2009 at 12:00 PM, Rickard Öberg <[email protected]> wrote:

> Schema migration should be possible now, although it is not easy. To
> make it easier I think we need to be able to calculate the *hash* of an
> EntityType, using property names and types, recursively for value types.
> Then it is fast to check if a previously stored Entity used an outdated
> EntityType, and one can then perform migration rules. Does that sound
> reasonable? If so I will start looking at how to calculate the hash.

Sounds right to me... Alternatively, we could push the schema version
to the developer, so that we just write the value he/she provides.
Advantage is that the developer controls the schema version numbering
(instead of hashes), but the down-side is that he/she may "forget".

If we go with "hash", we need to let the visualizer show those, so
that the developer can know (without debugging) the values needed in
the schema mapping.

Cheers
Niclas
-- 
http://www.qi4j.org - New Energy for Java

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to