This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
How to get the starting position of a string using hibernate query. For example we will use �patindex� to get the position of the string in sqlserver. It will return an integer value based on the starting position of the given string .
There is nothing in HQL that matches this. You could use T-SQL directly, since Hibernate supports the use of platform-specific SQL (see the createSQLQuery method) however this would break portability. Doing the work in your application via Java might be the best way though.