On 2010-12-11 22.42, Niclas Hedhman wrote:
In this simple case, everything is straight forward. Properties that
are found in the Entity but is not present in the Value (identity in
the above for instance) will just be ignored.
This 'ignore' bit causes a NullPointerException in AbstractStateModel.
I can either catch that, but Exceptions are expensive, or I could
change setProperty() method to the following;
<snip>
It sort of depends on how you have implemented it. The way I would do it
is to iterate over the value state, and for each property pull it from
the entity. Then it should be no "misses", right?
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev