to_date ---->> date_format
select * from dual ---->> select '*' from dual
rownum ---->> limit
delete -----使用别名时应该 delete a from TEST_TABLE a where a.ID = ''
表名全部改成大写的。
修改方言,MysqL默认方言中没有BigDecimal,Long,Text
引用需要自定义方言
package com.yourcompany;
import java.sql.Types;
import org.hibernate.Hibernate;
import org.hibernate.dialect.MysqLDialect;
public class MyDialect extends MysqLDialect {
public MyDialect() {
super();
registerHibernateType(Types.DECIMAL,Hibernate.BIG_DECIMAL.getName());
registerHibernateType(Types.LONGVARCHAR,Hibernate.STRING.getName());
registerHibernateType(Types.BINARY,Hibernate.STRING.getName());
registerHibernateType(-1,Hibernate.STRING.getName());
}
}
连接池设置:timeBetweenEvictionRunsMillis:60000,值需要小一些,可能MysqL数据库性能不好
原文链接:https://www.f2er.com/oracle/213323.html