protected final void addCacheHints ( final TypedQuery < ? > typedQuery , final String comment ) { typedQuery . setHint ( "org.hibernate.cacheMode" , CacheMode . NORMAL ) ; typedQuery . setHint ( "org.hibernate.cacheable" , Boolean . TRUE ) ; typedQuery . setHint ( "org.hibernate.comment" , comment ) ; }
Adds the cache hints .