You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by hulitao198758 <hu...@lenovo.com> on 2018/08/02 07:41:38 UTC

Additional field problems occurred in ignite2.6

Ignite2.6 configured POJO field mapping, in the case of Ignite2.3 field is
uppercase or lowercase, only will be mapped to Ignite the memory among the
field names, but in the ignite2.6 if the field names in the JAVA entity
class and Ignite the Config fields in the configuration file name case is
inconsistent, will Ignite the memory mapping out the two fields, in the end
will be one more with JAVA entity class variables the same fields, why?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Additional field problems occurred in ignite2.6

Posted by dkarachentsev <dk...@gridgain.com>.
Hi,

Rules of field naming defined in BinaryIdMapper interface. By default used
BinaryBasicIdMapper implementation that is by default converts all field
names to lower case. So Ignite doesn't support the same field names in
different cases as it will treat them as same field. 
But you can configure BinaryBasicIdMapper to be case-sensitive. Just set it
to BinaryConfiguration:
config.setBinaryConfiguration(new BinaryConfiguration().setIdMapper(new
BinaryBasicIdMapper(false))).

Thanks!
-Dmitry



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/