It’s possible to execute queries accessing fields of inner classes. In your example you need to remove “ChildObject” prefix from the query and it will work fine:
"select ParentID, ChildID from Parent where ChildID < 10” — Denis > On Feb 20, 2017, at 6:14 AM, davida <[email protected]> wrote: > > Hi Denis, unfortunately that did not work for me (I had problem with inner > class). > Let me clarify what I was trying to do. I have following classes: > > class Parent { > int ParentID; > Child ChildObject; // assume initialized > } > class Child { > int ChildID; > } > > Parent properly is serialized with its child object. I want to execute > following query: > "select ParentID, ChildObject.ChildID from Parent where > ChildObject.ChildID<10". > > I assume this should not be possible to execute as child object is custom > user type. Am I correct ? > Many Thanks. > > > > -- > View this message in context: > http://apache-ignite-users.70518.x6.nabble.com/SqlFieldQueries-on-property-of-custom-user-type-tp10719p10732.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com.
