Class NativeSQLFunction

  • All Implemented Interfaces:
    org.hibernate.dialect.function.SQLFunction

    public class NativeSQLFunction
    extends org.hibernate.dialect.function.SQLFunctionTemplate
    Helper class for mixing native SQL with HQL queries. The typical use case (the only so far) is to execute a subquery in a place were HQL doesn't support subqueries (in WITH clause). The function definition takes one parameter which is the native SQL to execute. Use '[' and ']' to indicate open and close quotes in the native SQL dialect.
    Since:
    3.10
    Author:
    nicklas
    • Constructor Detail

      • NativeSQLFunction

        public NativeSQLFunction()
    • Method Detail

      • render

        public String render​(org.hibernate.type.Type argumentType,
                             List args,
                             org.hibernate.engine.spi.SessionFactoryImplementor factory)
        Specified by:
        render in interface org.hibernate.dialect.function.SQLFunction
        Overrides:
        render in class org.hibernate.dialect.function.SQLFunctionTemplate