|
|
Browse by Tags
All Tags » Query » identity (RSS)
-
Hello!
Can somebody tell me how SODA behaves for querying Lists? Assumed that Foo is a class which got a field (List _bars) which holds Bar-Objects and I want to get all Foos which got a special Bar. Does this Query
Query q = _objectContainer.query();q.constrain(Foo.class);q.descend(''_bars'').constrain(special_bar); // special_bar is a ...
-
The following will do the trick:
query.Descend(''foo'').Constrain(foo).Identity();
Without calling #Identity() the foo object will be treated as Query-By-Example and all non-null members of the foo object that you use as a constraint will be compared to all the Foo member objects in the database.
We have had some people ask us that ...
|
|
|