@Override
    public String serialize(String literal, int jdbcType) {
        if (jdbcType == Types.BOOLEAN) {
            return "1".equals(literal) ? "true" : "false";
        } else {
            return super.serialize(literal, jdbcType);
        }
    }
{@code PostgreSQLTemplates} is an SQL dialect for PostgreSQL

<p>tested with PostgreSQL 8.4 and 9.1</p>

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/PostgreSQLTemplates.java