I'm using hiberate 4.3.5 Final and encounter following warning
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
So i have change my mapping file unique id generator from
generator class="uuid.hex"
to
generator class="uuid2"
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?
One additional thing i notice is that uuid2 key is having "-" compare to the uuid.hex. Any disadvantage?