All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.dialect.unique.MySQLUniqueDelegate Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.dialect.unique;

import org.hibernate.boot.Metadata;
import org.hibernate.dialect.Dialect;
import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment;
import org.hibernate.mapping.UniqueKey;

/**
 * @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 ";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy