Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package id.co.sofcograha.gajiidapi.testutils;
- import org.hibernate.dialect.H2Dialect;
- /**
- * Workaround.
- *
- * @see https://hibernate.onjira.com/browse/HHH-7002
- *
- */
- public class ImprovedH2Dialect extends H2Dialect {
- @Override
- public String getDropSequenceString(String sequenceName) {
- // Adding the "if exists" clause to avoid warnings
- return "drop sequence if exists " + sequenceName;
- }
- @Override
- public boolean dropConstraints() {
- // We don't need to drop constraints before dropping tables, that just
- // leads to error messages about missing tables when we don't have a
- // schema in the database
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment