title: How to convert a String to a GUID
body: <p>I need to convert a String to a GUID, there are lots of tutorials online about converting one to a UUID but not to a GUID. I am working in Java.</p>
  
  <p>When I use a UUID, I get the following error:</p>
  
  <pre class="lang-none prettyprint-override"><code>ERROR: operator does not exist: character varying = uuid
  Hint: No operator matches the given name and argument types. You might need to add explicit type casts.
  </code></pre>
  
  <p>I have tried using help from the following question but Guid doesn't seem to be a type in java and the constructor for GUID doesn't take any arguments:</p>
  
  <p><a href="https://stackoverflow.com/questions/350500/how-to-try-convert-a-string-to-a-guid">How to try convert a string to a Guid</a></p>