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

org.hibernate.dialect.MariaDB102Dialect Maven / Gradle / Ivy

There is a newer version: 6.6.2.Final
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;

import org.hibernate.dialect.function.StandardSQLFunction;
import org.hibernate.type.StandardBasicTypes;

import java.sql.Types;

public class MariaDB102Dialect extends MariaDB10Dialect {

	public MariaDB102Dialect() {
		super();

		this.registerColumnType( Types.JAVA_OBJECT, "json" );
		this.registerFunction( "json_valid", new StandardSQLFunction( "json_valid", StandardBasicTypes.NUMERIC_BOOLEAN ) );

	}

	@Override
	public boolean supportsColumnCheck() {
		return true;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy