Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MappingAerospikeWriteConverter converts Long version field into Integer #688

Open
lysakaleksey opened this issue Jan 12, 2024 · 0 comments

Comments

@lysakaleksey
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant