Class QueryHints

java.lang.Object
org.hibernate.dialect.queryhint.spi.QueryHints

@SPI(USE) public final class QueryHints extends Object
Provides reusable SQL query-hint rendering operations.
Since:
8.0
  • Method Details

    • addUseIndexHint

      public static String addUseIndexHint(String sql, String hints)
      Insert a USE INDEX clause after the initial SELECT/FROM table segment. Return the original SQL when its shape is not recognized.