HHH-12840 Simplify implementation of LocalObjectUuidHelper
This commit is contained in:
parent
d08cc00628
commit
628b23faaa
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue