Hi all,
in RC1 toString() and friends were implemented generally using the identity of the entity.
At least I did not found a way to provide a specific implementation through a mixin. In
1.0 final, with the same code, I get:
org.qi4j.api.mixin.InvalidMixinException: org.qi4j.runtime.composite.CompositeMixindoes
not have a method implementation for public boolean java.lang.Object.equals(java.lang.Object)
at
org.qi4j.runtime.composite.MixinModel.newInvocationHandler(MixinModel.java:238)
at
org.qi4j.runtime.composite.AbstractMixinsModel.newInvocationHandler(AbstractMixinsModel.java:270)
at
org.qi4j.runtime.composite.CompositeMethodModel.newCompositeMethodInstance(CompositeMethodModel.java:175)
at
org.qi4j.runtime.composite.CompositeMethodModel.getInstance(CompositeMethodModel.java:166)
at
org.qi4j.runtime.composite.CompositeMethodModel.invoke(CompositeMethodModel.java:150)
at
org.qi4j.runtime.composite.CompositeMethodsModel.invoke(CompositeMethodsModel.java:122)
at
org.qi4j.runtime.composite.AbstractCompositeModel.invoke(AbstractCompositeModel.java:122)
at org.qi4j.runtime.entity.EntityInstance.invoke(EntityInstance.java:82)
at $Proxy26.equals(Unknown Source)
at
org.eclipse.jface.viewers.StructuredViewer.equals(StructuredViewer.java:687)
The mixin is:
public abstract class PersonMixin
implements Person {
@This PersonComposite composite;
public String toString() {
return "Person: ...";
}
[...]
}
So, how is this done 1.0 release? I was searching web and mailing list but did not find
anything about it. Any help would be greatly appreciated.
Tripple thanks :)
Falko
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev