spring-data-aerospike
spring-data-aerospike copied to clipboard
MappingAerospikeWriteConverter converts Long version field into Integer
Hi there,
MappingAerospikeWriteConverter converts version field into Integer, what if field defined as Long version ? The mapper will convert long to integer hence cuasing ConversionFailedException
Example: org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.Long] to type [java.lang.Integer] for value [....]
Source code:
https://github.com/aerospike/spring-data-aerospike/blob/8ef5cc070fac4c8060021f6cb38d023bbf5bd7a4/src/main/java/org/springframework/data/aerospike/convert/MappingAerospikeWriteConverter.java#L97C35-L97C35