Hello,
I can query data when the search pattern is supposed to hold the wildcard with the like-operator like this:
Code:
criteria.createCriteria("mycollectionproperty").add(Restrictions.like("mycol", "%"+ queryObject.getMycol() + "%"));
But how can I do it the other way round? Let's say in the database "VPN*" is stored and should match the search-input-string "VPN123"? Furthermore the records in the database can look like this "*VPN" or "VPN*" or "*VPN*" and i have to adjust the query operator accordingly.
Big thx!