On 2009-11-16 11.12, Niclas Hedhman wrote:
You don't need to "add a role" to an entity, since the roles are not
stored. Instead, you effectively do; "Ok, here is a Role (an
interface) and load up Entity 1234 into that role."
There are some nastiness hidden in the fine details, for instance that
potentially the different roles could be stored in different entity
stores, and therefor the retrieval of the old state would fail, and
entity stores that needs type mapping can't be used and possibly
others. But in general, this is fairly straight-forward.
Also, if the new role requires default state that was previously not
there you can use the Migration API to declare it, or declare it using
the assembly (depending on whether you want to fix old state or new state).
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev