Closed anotherpit closed 12 years ago
I have no idea how fieldValue
arrived there as String but your solution is better for converting to Integer. I also handled enum field being null
that previously logged an error due to NullPointerException redundantly. Updated the jar in Downloads. Thanks!
Neither can I figure out why I decided it was String
to Integer
conversion problem. Anyway, new JAR
works like a charm. Thanks.
Can't reopen issue #17, so have to create a new one.
org.orman.mapper.ReverseMapping
is broken as its methodmap()
causesClassCastException
when trying to castString
toInteger
:fieldValue = enumConstant[(Integer) fieldValue];
.The whole enum processing should be moved to
smartCasting()
method and usenew Integer(value.toString())
for enums.