2009/9/22 Krzysztof Białek <[email protected]>: > I looked at the core code and found that maybe EntityPropertyInstance should > override visitProperties method. > After overriding it as shown below it works fine. > public void visitProperties( StateVisitor visitor ) > { > for ( EntityPropertyModel propertyModel : this.model.properties() ) > { > QualifiedName qualifiedName = propertyModel.qualifiedName(); > visitor.visitProperty( qualifiedName, > this.entityState.getProperty( qualifiedName ) ); > } > } > > I'm still learning Qi4j so it's highly probable I'm doing something wrong or > against the concept.
I think you are right, and your use-case has just not been seen before. That said, I think Rickard is doing this kind of copying "allllll the time" between entities and values, so perhaps he has some opinion on what is the best way to do it. Meanwhile, I will fix the code per your suggestion. 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

