Browse Source
Merge in QFX/base-third from ~ELIJAH/qfx-base-third:qufenxi to qufenxi * commit 'a2fadb5bf3c89a92c0a1bcaaa8fb6a901ce2e0b5': DEC-14578 feat: hibernate二级缓存卡顿 DEC-14578 feat: hibernate自动删除旧唯一键release/10.0
Elijah
4 years ago
8 changed files with 122 additions and 7 deletions
@ -0,0 +1,23 @@
|
||||
package com.fr.third.org.hibernate.dialect.unique; |
||||
|
||||
import com.fr.third.org.hibernate.dialect.Dialect; |
||||
|
||||
/** |
||||
* @author Andrea Boriero |
||||
*/ |
||||
public class MySQLUniqueDelegate extends DefaultUniqueDelegate { |
||||
|
||||
/** |
||||
* Constructs MySQLUniqueDelegate |
||||
* |
||||
* @param dialect The dialect for which we are handling unique constraints |
||||
*/ |
||||
public MySQLUniqueDelegate(Dialect dialect) { |
||||
super( dialect ); |
||||
} |
||||
|
||||
@Override |
||||
protected String getDropUnique() { |
||||
return " drop index "; |
||||
} |
||||
} |
Loading…
Reference in new issue