diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java index 99c8bb9fbe..d0a8a676d1 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java @@ -70,6 +70,7 @@ public class PostgreSQLDialect extends Dialect { registerColumnType( Types.TIME, "time" ); registerColumnType( Types.TIMESTAMP, "timestamp" ); registerColumnType( Types.VARBINARY, "bytea" ); + registerColumnType( Types.BINARY, "bytea" ); registerColumnType( Types.LONGVARCHAR, "text" ); registerColumnType( Types.LONGVARBINARY, "bytea" ); registerColumnType( Types.CLOB, "text" ); diff --git a/hibernate-core/src/main/java/org/hibernate/engine/internal/Nullability.java b/hibernate-core/src/main/java/org/hibernate/engine/internal/Nullability.java index 5f9f9d6aea..c3698b29c8 100755 --- a/hibernate-core/src/main/java/org/hibernate/engine/internal/Nullability.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/internal/Nullability.java @@ -200,14 +200,14 @@ public final class Nullability { /** * Return a well formed property path. - * Basicaly, it will return parent.child + * Basically, it will return parent.child * * @param parent parent in path * @param child child in path * @return parent-child path */ private static String buildPropertyPath(String parent, String child) { - return new StringBuffer( parent.length() + child.length() + 1 ) + return new StringBuilder( parent.length() + child.length() + 1 ) .append(parent).append('.').append(child).toString(); }