Alin Dreghiciu wrote:
> On Mon, Sep 1, 2008 at 12:43 PM, Rickard Öberg <[EMAIL PROTECTED]> wrote:
> To express the query will not be a problem as you can say (for example
> in issue):
> 
> QueryBuilder<Person> qb = qbf.newQueryBuilder( Abc.class );
> Abc abc = templateFor( Abc.class );
> qb.where(
>   eq( abc.def().get().value(), 10 )
> );
> Query<Abc> query = qb.newQuery();
> 
> Note that this is not supported right now (an exception is thrown)

Oh, now I get it. It's not related to assocs, but properties with 
complex values. My brain got it all mixed up. Right.

Well, to index the state should be reasonably easy. We will have to 
extend the EntityType to refer to ValueTypes though, in order to 
encapsulate the "schema" properly.

>>> * is it supported by EntityStores ?
>> I thought this was a query issue only..?
> 
> My question was if entity stores supports this kind of properties.

Right, gotcha. There's nothing that says it can't work, but there's also 
nothing that explicitly says that it must work. I'm not really sure what 
the best way to do it is. As Niclas pointed out in the issue text, it 
may open a whole can of worms...

Would it be possible to do a test and see what happens?

/Rickard


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to