Closed beunick closed 3 years ago
Very sorry for this long message. I figure out my issue. In the Enum in the fromString() method I replace: this line: EnumUtils.fromString(AppTimeZone.class, str); With this line: for(AppTimeZone tz: AppTimeZone.values()) { if(tz.timeZone.equalsIgnoreCase(str)) { return tz; } } return null;
It works fine now. Once again sorry. I am new to datastore/springboot, not used to converter etc... Thanks for doing this. It is no easy to integrate DataStore to existing Sprintboot application because of your work. I will now close this. Thanks
@beunick enum conversion is supported out of the box. I think you don't need to create your own converter for your enum.
Hello I am new with Sprintboot/Data Store I am not sure if this is a bug or if there is something I am not doing right.
Here is the entity: `
` The Enum:
`
`
The converter: `
The Repository: `
` In my service I am doing this:
'
Here is the error message I get, it looks like the mapping is not working when fetching the data:
`
`
What surprise me the most is, when I create a new object or save an existing object like this:
Account account = this.accountRepository.save(accountObject);
I don't have any error on the save, the mapping works very well.Can you please let know what's wrong ? Thank You.