@Override
    public String serialize(String literal, int jdbcType) {
        switch (jdbcType) {
            case Types.BOOLEAN:
                return "1".equals(literal) ? "true" : "false";
            case Types.TIMESTAMP:
            case TIMESTAMP_WITH_TIMEZONE:
                return "{ts '" + literal + "'}";
            case Types.DATE:
                return "{d '" + literal + "'}";
            case Types.TIME:
            case TIME_WITH_TIMEZONE:
                return "{t '" + literal + "'}";
            default:
                return super.serialize(literal, jdbcType);
        }
    }
{@code DerbyTemplates} is an SQL dialect for Derby

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