I used the interceptor and comment based method to add the query hint to the HQL or ICriteria query, you can find the information here . This is not a real solution for you, but you can start here and modify the interceptor to give a hint of a dead end.
source
share