eric-hawthorne / relish

Automatically exported from code.google.com/p/relish
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Extend list constructor SQL/OQL queries to allow conditions on associated objects #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, you can express conditions on the unary primitive-type attribute 
values of the data type being fetched into a list. (Technically, also primitive 
attributes of supertypes of the data type too.)

It would be very useful to allow the expression of join queries to filter the 
result list based on conditions on attributes of associated/related objects, 
and maybe even indirectly related objects in the object relation/component 
network.

Probably, dot-notation should be used (similar to OQL I think) to refer to the 
joined objects e.g.

cars = Car[] "engine.timingBelt.model.name = 'ACME 1305-B' 

Original issue reported on code.google.com by relis...@gmail.com on 7 Dec 2012 at 12:40

GoogleCodeExporter commented 9 years ago

Original comment by relis...@gmail.com on 1 Jan 2014 at 11:12

GoogleCodeExporter commented 9 years ago
Fixed to allow one level like engine.horsepower > 100

May want to extend to at most a few more levels eventually.

Original comment by relis...@gmail.com on 31 Jul 2014 at 6:31