From 06f9e60a0ad9b6b93429b7fac8113f9443fb161c Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Mon, 14 Jun 2010 18:59:10 +0000 Subject: [PATCH] HHH-3579 - Support for PostgreSQL UUID data type git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19726 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- core/src/main/java/org/hibernate/type/PostgresUUIDType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/hibernate/type/PostgresUUIDType.java b/core/src/main/java/org/hibernate/type/PostgresUUIDType.java index 3ec3678b69..3444fa42b6 100644 --- a/core/src/main/java/org/hibernate/type/PostgresUUIDType.java +++ b/core/src/main/java/org/hibernate/type/PostgresUUIDType.java @@ -68,7 +68,7 @@ public class PostgresUUIDType extends AbstractSingleColumnStandardBasicType( javaTypeDescriptor, this ) { @Override protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options) throws SQLException { - st.setObject( index, javaTypeDescriptor.unwrap( value, UUID.class, options ) ); + st.setObject( index, javaTypeDescriptor.unwrap( value, UUID.class, options ), getSqlType() ); } }; }