I’m trying to migrate my Java project using the Hibernate core library.
My current JAR is hibernate-core-5.3.13.jar, and I want to migrate to hibernate-core-6.4.4.jar.
In the project, there are two classes, which are custom dialects (inheriting from Oracle10gDialect and PostgreSQLDialect). It seems that the usage has changed a lot. How am I supposed to adapt it?
Here is an extract of my current class.
Ty.
public class CustomOracleDialect extends Oracle10gDialect {
public CustomOracleDialect(){
super();
registerFunction("bitand", new StandardSQLFunction("bitand", StandardBasicTypes.INTEGER));
registerFunction(
"bitnot",
new SQLFunctionTemplate(
StandardBasicTypes.INTEGER,
"~?1"));
registerFunction("bitor", new StandardSQLFunction("bitor", StandardBasicTypes.INTEGER));
}
...
}