HHH-12840 Simplify implementation of LocalObjectUuidHelper

This commit is contained in:
Sanne Grinovero 2018-07-18 12:53:00 +01:00
parent d08cc00628
commit 628b23faaa
1 changed files with 2 additions and 4 deletions

View File

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