Lukas, I found another problem.
Because I use a custom Generator strategy, which generates
*setPasswordEncrypted()
*for the field *passwordEncrypted* on my *User *entity pojo, the mapping
doesn't work anymore.
I get the *User* entity using its DAO : *userDao.fetchOne(user.username,
"toto");*
The record is found. But when Jooq tried to map it to the pojo, using
*mapper().map(record)*, the *setPasswordEncrypted() *setter is not found so
the field stays NULL. Why? Because of the *Utils#getMatchingSetters()*method,
which calls
*StringUtils#toCamelCase(name)*. But :
*StringUtils.toCamelCase("passwordEncrypted")* returns "*Passwordencrypted*"
so *setPasswordencrypted(*) is searched, but not *setPasswordEncrypted()*!
In *Utils#getMatchingSetters()*, maybe you could look for true camel cased
versions too?
Thanks!
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.