Rickard Öberg schrieb:
On 2010-02-03 20.19, Falko Bräutigam wrote:
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:
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.
Since Object methods should be done by Qi4j itself, why do you have a
toString() in the mixin? What happens if you remove it?
The toString() in the mixin was just a test after the update to 1.0 the
InvalidMixinException started to be thrown. No matter if toString() is in the mixin or not
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)
Meanwhile I tried to introduce implementations of toString()/equals/hashCode in
EntityInstance. This works so far. Perhaps you can point me to the code that provides the
regular implementations of those method, so that I can debug a bit more.
Thanks for your help.
--
Falko Bräutigam
http://polymap.org
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev