Why not use the UUID type there as it is a UUID and add a converter to persist to the db:

http://en.wikibooks.org/wiki/Java_Persistence/Basic_Attributes#Example_Converter