spring-data-aerospike icon indicating copy to clipboard operation
spring-data-aerospike copied to clipboard

MappingAerospikeWriteConverter converts Long version field into Integer

Open lysakaleksey opened this issue 1 year ago • 0 comments

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

lysakaleksey avatar Jan 12 '24 13:01 lysakaleksey