PSQLCustomDialect.java
package com.tradecloud.database;
import org.hibernate.dialect.PostgreSQL9Dialect;
public class PSQLCustomDialect extends PostgreSQL9Dialect {
public PSQLCustomDialect() {
super();
// System.out.println("register psql function >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
//
// registerFunction(
// "is_child_org",
// new SQLFunctionTemplate(
// StandardBasicTypes.BOOLEAN,
// "is_child_org(?1,?2)"
// )
// );
// registerFunction(
// "org_list",
// new SQLFunctionTemplate(
// StandardBasicTypes.CHARACTER_ARRAY,
// "org_list(?1)"
// )
// );
// registerFunction( "test", new SQLFunctionTemplate(StandardBasicTypes.INTEGER, "?1 @> ?2" ) );
// registerKeyword("@>");
}
}