-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthew Toseland a ?crit :
>
>> + public int getScore(OwnIdentity treeOwner, ObjectContainer db) {
>> +
>> + Query query = db.query();
>> + query.constrain(Score.class);
>> + query.descend("treeOwner").constrain(treeOwner);
>> + query.descend("target").constrain(this);
>
> Try adding .identity() to these two lines to match the exact pointer instead
> of "similar objects".
Corrected in 21615, thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFImGJLmY5qNqKdYw0RAhLMAJ0UL5Ep48dHM0RLSVgPgqTocZEp/ACgmRNl
/qJ+7r+Ez/A07hQe58zOB1A=
=hJDB
-----END PGP SIGNATURE-----