Example usage for org.hibernate.dialect Dialect toBooleanValueString

List of usage examples for org.hibernate.dialect Dialect toBooleanValueString

Introduction

In this page you can find the example usage for org.hibernate.dialect Dialect toBooleanValueString.

Prototype

public String toBooleanValueString(boolean bool) 

Source Link

Document

The SQL literal value to which this database maps boolean values.

Usage

From source file:dk.teachus.backend.dao.hibernate.BooleanType.java

License:Apache License

public String objectToSQLString(Boolean value, Dialect dialect) {
    return dialect.toBooleanValueString(value.booleanValue());
}

From source file:org.xwiki.index.tree.internal.nestedpages.query.HiddenPageFilter.java

License:Open Source License

private String toBooleanValueString(boolean value) {
    Dialect dialect = ((SessionFactoryImplementor) this.sessionFactory.getSessionFactory()).getDialect();
    return dialect.toBooleanValueString(value);
}