Skip to content

Instantly share code, notes, and snippets.

@KDamir
Created April 24, 2017 09:12
Show Gist options
  • Save KDamir/52f1c08398da625efca2dcb01429cee8 to your computer and use it in GitHub Desktop.
Save KDamir/52f1c08398da625efca2dcb01429cee8 to your computer and use it in GitHub Desktop.
CustomSqlDialect
package kz.inessoft.stomagic.common.data.util;
import org.hibernate.dialect.PostgreSQL9Dialect;
import org.hibernate.dialect.function.StandardSQLFunction;
/**
* Created by damir.keldibekov on 24.04.2017.
*/
public class CustomPostgreSQL9Dialect extends PostgreSQL9Dialect {
public CustomPostgreSQL9Dialect() {
super();
registerFunction("replace", new StandardSQLFunction("replace"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment