HHH-6242 no Types.BINARY type mapping in PostgresqlDialect

This commit is contained in:
Strong Liu 2011-05-23 12:09:50 +08:00
parent c1415b4b8f
commit 3b8678864a
2 changed files with 3 additions and 2 deletions

View File

@ -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" );

View File

@ -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();
}