vkulichenko, I have an example where I store Employee object in cache.
public class Employee {
@QuerySqlField(index=true)
private String name;
@QuerySqlField(index=true)
private List<Address> addresses;
}
public class Address {
private String street;
private String city;
}
H2 console contains these fields in columns as below: I can even search
addresses using LIKE %txt%
_KEY : 1
_VAL : com.test.ignite.markit.Employee [idHash=878529620, hash=1730337646,
name=John, addresses=[com.test.ignite.markit.Address [idHash=1265060964,
hash=883380345, city=NY, street=street1], com.test.ignite.markit.Address
[idHash=1274742681, hash=54960993, city=UT, street=street1]]]
NAME : John
ADDRESSES : [com.test.ignite.markit.Address [idHash=1777853918,
hash=883380345, city=NY, street=street1], com.test.ignite.markit.Address
[idHash=932592472, hash=54960993, city=UT, street=street1]]
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Ignite-Using-complex-object-with-nested-attributes-and-search-tp6556p6583.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.