Author: stliu
Date: 2010-09-01 14:58:32 -0400 (Wed, 01 Sep 2010)
New Revision: 20303
Modified:
core/trunk/core/src/main/java/org/hibernate/type/UUIDCharType.java
Log:
HHH-5484 org.hibernate.type.UUIDCharType incorrectly mapped to char and causes test fail
due to the padding space
Modified: core/trunk/core/src/main/java/org/hibernate/type/UUIDCharType.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/type/UUIDCharType.java 2010-09-01 17:03:05
UTC (rev 20302)
+++ core/trunk/core/src/main/java/org/hibernate/type/UUIDCharType.java 2010-09-01 18:58:32
UTC (rev 20303)
@@ -27,7 +27,7 @@
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 static final UUIDCharType INSTANCE = new UUIDCharType();
public UUIDCharType() {
- super( CharTypeDescriptor.INSTANCE, UUIDTypeDescriptor.INSTANCE );
+ super( VarcharTypeDescriptor.INSTANCE, UUIDTypeDescriptor.INSTANCE );
}
public String getName() {
Show replies by date