I have created an application which is inserting data into aerospike via 2 modes :
- I have used aerospike client to insert the data. I am passing the keys in it, saving the bin. My key is : 12345 Username : 12345 This is getting saved.
I didnt specify the @Id property here, as it is not a spring-hibernate project.
- I have created another application for reading and writing from aerospike on top of Spring boot + spring data.
I dont have any @Id property in the entity class. When I am trying to save object over here using the aerospike repository. It is throwing me error to create an @Id property.
When I create the @Id property, I get all the object’s data, but the @Id column is null if it is inserted from the 1st case (from the aerospike client).
It works fine it it was inserted via 2nd application.
Help me resolve this issue.