Not sure if you still have this problem, but I just did, and solved it by
wrapping a traversal in a select.
So,
select from Item (traverse the itemList from #customer.rid)
On Sunday, 5 January 2014 11:32:14 UTC, Aymer wrote:
>
> Hi
>
> I've simple doc structure as follows:
>
> class Item{
> private String name;
> }
>
> class Customer{
> ...
> private List<Item> itemList;
>
> }
>
>
> *1)* how do I issue a select on Customer where item.name = 'box'; ?
>
> I tried *select * from Customer where itemList.name='box'* . But
> didn't work.
>
>
>
> *2)* When I tried *select * from Customer*, it didn't loaded the embedded
> List.
> But *select * from Customer fetchplan '*:-1'* throws below error:
>
> Error:
> com.orientechnologies.orient.enterprise.channel.binary.OResponseProcessingException:
>
> Exception during response processing.
> Error: java.lang.StringIndexOutOfBoundsException: String index out
> of range: -31
>
> tried variations
>
> *select * from Customer fetchplan='*:-1'*
>
> * select * from Customer fetchplan *:-1 **select * from Customer
> fetchplan=*:-1*
>
> But all of them throws the same exception. An example in the wiki
> would be great.
>
> Thanks
> Aym
>
>
>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.