|
|
Browse by Tags
All Tags » Native Queries » SODA (RSS)
-
I don't understand why the execution of a query through a collection, like the following one, must activate all the elements of the collection, if I'm using the identity constrain. Firstly 'pilot' has been retreived from the database. query.Descend(''_pilots'').Constrain(pilot).Identity()Besides, if I try to use Native Query, ...
-
Hi Ian,
You may be enlightened in the explanation here.
Edwin
-
Carl Rosenberger:
There is no way to enable 'idendity' for QBE ?
Yes there is:
query.constrain(new A(specificB));
query.descend(''b'').constraints().identity();
(...)
Native Queries are our primary query interface, so this is how you ''should'' set up the query, completely typesafe and refactorable, without having to ...
-
I found a mistake in the SODA query above. I have to add the identity flag to the _product constraint:
Query q = container.query();
q.constrain(Attribute.class);
q.descend(''_product'').constrain(lProduct).indentity().and(q.descend(''_language'').constrain(''de''));
lList = q.execute();
So this SODA query returns the ...
-
Hello,
I got two classes (Product and Attribute) and each Attribute has an member Product and Language:
...
-
There's no difference between an unoptimized native query, and a custom SODA evaluator. Actually, When the native query optimizer cannot optimize your query, it actually runs it as a SODA expression.
-
On this blog post Jochen Theodorou uses Groovy features like operator overloading and closures to write SODA queries like the following:Query query=db.query();query.constrain(Pilot.class);query.name == ''Michael Schumacher'' && query.points == 99Query query=db.query()query.constrain(Pilot.class)query.constrain { it.name.length() < 5 ...
|
|
|