This was discussed multiple times already. Please read through existing discussions:
- It is necessary to write redundant "ESCAPE '\'" after every LIKE expression
- Incorrect escape '' added to SQL for H2 in Oracle Mode
- Erroneous " escape '\' " being added to generated SQL with a JpaRepository findAll(Example)
- Why does Hibernate 6 automatically escape backslashes when rendering LIKE predicates?