Created
          October 19, 2011 17:59 
        
      - 
      
- 
        Save zerofudge/1299123 to your computer and use it in GitHub Desktop. 
    oracle hints in hql
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | String hql = "/*+ INDEX(stock idx_stock_code) */ | |
| select * from stock s where s.stock_code = :stockCode"; | |
| List result = session.createQuery(hql) | |
| .setString("stockCode", "7277") | |
| .list(); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment