ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vasiliy Sisko <vsi...@gridgain.com>
Subject Re: Confused about QueryEntity configuration
Date Tue, 22 Aug 2017 06:51:10 GMT
Hello @franck102

Please properly subscribe to the mailing list so that the community can
receive email notifications for your messages. To subscribe, send empty
email to user-subscribe@ignite.apache.org and follow simple instructions in
the reply.

'empNo' field is a key field and is not included into stored object
(org.apache.ignite.sample.model.Employees) for usage in query

To extract that field you can use one of the following solutions:
1) Configure an own key field alias in QueryEntity instance. F.e.: 
<property name="keyFieldName" value="empNo"/>
2) Use ‘_key’ alias for the key field in qyery. F.e.: select _key from
Employees
3) Include 'empNo' field into the stored object how you described in message
from Aug 18, 2017; 9:35pm



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Confused-about-QueryEntity-configuration-tp16281p16356.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message