I have a request to select similar objects from db.
Query query = entityManager.createQuery("select c from Case c where c.lastName = :lastName");
But I have a problem.
The "lastname" value for the object is "SAĞLAM" in the database, and the query parameter is "SAGLAM" or vice versa. Thus, the query does not give the entity.
The situation arises for C / Ç, S / Ş, G / Ğ, O / Ö, U / Ü, I / İ.
How can I solve this problem? Can I write a regex?
source
share