diff --git a/hibernate-core/src/main/java/org/hibernate/id/uuid/LocalObjectUuidHelper.java b/hibernate-core/src/main/java/org/hibernate/id/uuid/LocalObjectUuidHelper.java index d3ea0260e6..0971a4e0f4 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/uuid/LocalObjectUuidHelper.java +++ b/hibernate-core/src/main/java/org/hibernate/id/uuid/LocalObjectUuidHelper.java @@ -6,7 +6,7 @@ */ package org.hibernate.id.uuid; -import org.hibernate.type.descriptor.java.UUIDTypeDescriptor; +import java.util.UUID; /** * @author Steve Ebersole @@ -16,8 +16,6 @@ public class LocalObjectUuidHelper { } public static String generateLocalObjectUuid() { - return UUIDTypeDescriptor.ToStringTransformer.INSTANCE.transform( - StandardRandomStrategy.INSTANCE.generateUUID( null ) - ); + return UUID.randomUUID().toString(); } }