Hi,
I assume you are talking HQL or JPA QL here in which case this is probably the wrong forum. Hibernate Search is really about the combination of Hibernate and Lucene.
Nevertheless, Hibernate's LIKE operator allows wildcard searches via the symbols % and _. This is in accordance with the SQL standard. As far as I know there is no easy way to change to change the wildcard symbols. Also remember, even if you could write your queries with * and ?, once the SQL query will be executed the symbols would have to be replaced again with % respectively _ since this is what the database will expect.
What is your actual usecase? Why do you want to change the query syntax?
--Hardy
|