title: Hibernate UUID.hex vs UUID2
body: <p>I'm using  hiberate 4.3.5 Final and encounter following warning </p>
  
  <p>org.hibernate.id.UUIDHexGenerator WARN  - HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator instead</p>
  
  <p>So i have change my mapping file unique id generator from </p>
  
  <p>generator class="uuid.hex"</p>
  
  <p>to </p>
  
  <p>generator class="uuid2"</p>
  
  <p>Coding wise i know this is just a warning but is there any other advantage using uuid2 over uuid.hex. Is it more effective way or standard way to use uuid2 or best coding practise? I'm trying to go for best coding practise in my application. Any guru's can help me on this?</p>
  
  <p>One additional thing i notice is that uuid2 key is having "-" compare to the uuid.hex. Any disadvantage?</p>