Rejected
Details
Assignee
UnassignedUnassignedReporter
Hontvári JózsefHontvári JózsefComponents
Affects versions
Priority
Minor
Details
Details
Assignee
Unassigned
UnassignedReporter
Hontvári József
Hontvári JózsefComponents
Affects versions
Priority
Created August 6, 2008 at 7:24 PM
Updated July 8, 2014 at 3:12 PM
Resolved July 8, 2014 at 3:12 PM
One can think that by specifying e.g. MatchMode.START in a "like" restriction Hibernate takes care of escaping SQL LIKE wildcard characters in the supplied pattern. It doesn't, actually Hibernate only inserts a % before the first character.
I am not sure what was the intent of the original author (Gavin King), so the issue may only be missing documentation. However I don't see any other useful purpose of this class then providing database independent escaping. It seems that all databases use the % wildcard, so there is no need to provide database indpeendence to that.
It can be argued that this might create a security problem for an unaware developer, so I set issue type to bug.