Ok the difference comes from a small difference of JPA configuration between both.
The cause is the presence of the property "hibernate.query.substitutions", "true=1 false=0" and this seems to be in conflict with the converter.