I want to make a query for an entity.The entity has a list of Objects.What i want is,querying for a field of this list and returning the entity again.
I wrote the code like this but it did not work :
<query>select distinct i from Is as i where :k MEMBER OF i.cars.color and i.id=1 </query>
The cars
is a list and has a relation many to one with Is
entity.How can i make it succesfull? Thanks in advance.