Using UUIDManager to generate a random UUID

This commit is contained in:
Luca Frosini 2021-10-22 20:09:27 +02:00
parent 83d14611c7
commit beb54469fb
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import org.gcube.informationsystem.context.impl.relations.IsParentOfImpl;
import org.gcube.informationsystem.context.reference.entities.Context;
import org.gcube.informationsystem.context.reference.relations.IsParentOf;
import org.gcube.informationsystem.model.impl.properties.HeaderImpl;
import org.gcube.informationsystem.utils.UUIDManager;
/**
* @author Luca Frosini (ISTI - CNR)
@ -46,7 +47,7 @@ public final class ContextImpl extends EntityElementImpl implements Context {
this();
this.name = name;
if(uuid == null){
uuid = UUID.randomUUID();
uuid = UUIDManager.generateValidRandomUUID();
}
this.header = new HeaderImpl(uuid);
}