I'm using the BeanListHandler
to convert rows from my database into POJOs. It has been working fine but now I need to do some date comparisons. For this I decided to use JodaTime.
I want all Timestamp/Date type rows from my query's result set to be converted into JodaTime's DateTime
class instead of the default Timestamp
. I tried using the setter to do this but BeanListHandler
does not seem to be calling the setters to set the values (does it use reflection?).
How should I go about doing this?