org.springframework.data.r2dbc.dialect.H2Dialect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-data-r2dbc-dsl Show documentation
Show all versions of spring-data-r2dbc-dsl Show documentation
Spring Data DSL module for Web querying and Criteria building
package org.springframework.data.r2dbc.dialect;
import org.springframework.data.relational.core.sql.SqlIdentifier;
/**
* An SQL dialect for H2 in Postgres Compatibility mode.
*
* @author Mark Paluch
* @author Jens Schauder
*/
public class H2Dialect extends PostgresDialect {
/**
* Singleton instance.
*/
public static final H2Dialect INSTANCE = new H2Dialect();
@Override
public String renderForGeneratedValues(SqlIdentifier identifier) {
return identifier.getReference(getIdentifierProcessing());
}
}