I am using Spring and Hibernate to persist my objects and it works fine except when I have single quotes in some fields of some objects.
I know that single quotes are special caracters for SQL and they must be "quoted". But I thought that Hibernate will be clever enough to do that sort of things.
It seems it's not the case so what is the best way to do this ?
I don't want to modify the setters and getters of these fields to do the conversion.
Thanks in advance.


Reply With Quote