Support conversion between Enum and Integer [SPR-14039] #18611
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Yanming Zhou opened SPR-14039 and commented
DefaultConversionService have conversion between Enum and String using Enum.name() , It's reasonable to add conversion for Integer using Enum.ordinal() .
JPA use ordinal as default mapping:
Developers can extends BeanPropertyRowMapper and set DefaultConversionService to BeanWrapper, doesn't need write Converters, I'm glad to provide a pull request.
Referenced from: pull request #998, and commits f422e49, 1c3c88f
The text was updated successfully, but these errors were encountered: