Let me preface this by saying that Iβm much better off using Option[UUID] and None represents an empty UUID.
You cannot use an empty String , since it does not conform to the UUID format described here .
you can use
UUID.fromString("00000000-0000-0000-0000-000000000000")
It will be the same as
new UUID(0L, 0L)
But using this would be arbitrary, and it would be much better to indicate the absence or absence of UUID with Option .
source share