From dbcced88aabe877a38ee7028c180c8c4edfa8c7d Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Wed, 1 Sep 2010 18:58:32 +0000 Subject: [PATCH] HHH-5484 org.hibernate.type.UUIDCharType incorrectly mapped to char and causes test fail due to the padding space git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20303 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- core/src/main/java/org/hibernate/type/UUIDCharType.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/hibernate/type/UUIDCharType.java b/core/src/main/java/org/hibernate/type/UUIDCharType.java index 4da81364e5..4331d70b0c 100644 --- a/core/src/main/java/org/hibernate/type/UUIDCharType.java +++ b/core/src/main/java/org/hibernate/type/UUIDCharType.java @@ -27,7 +27,7 @@ import java.util.UUID; import org.hibernate.dialect.Dialect; import org.hibernate.type.descriptor.java.UUIDTypeDescriptor; -import org.hibernate.type.descriptor.sql.CharTypeDescriptor; +import org.hibernate.type.descriptor.sql.VarcharTypeDescriptor; /** * A type mapping {@link java.sql.Types#CHAR} (or {@link java.sql.Types#VARCHAR}) and {@link java.util.UUID} @@ -38,7 +38,7 @@ public class UUIDCharType extends AbstractSingleColumnStandardBasicType im public static final UUIDCharType INSTANCE = new UUIDCharType(); public UUIDCharType() { - super( CharTypeDescriptor.INSTANCE, UUIDTypeDescriptor.INSTANCE ); + super( VarcharTypeDescriptor.INSTANCE, UUIDTypeDescriptor.INSTANCE ); } public String getName() {