Tuesday, 7 June 2016

How to create random uuid or sequence for id generator through java.util.UUID

Below is way to create random UUID ,  this uuid can be used in place of sequencer (oracle sequence creation which will be provided in hibernate/jpa entities)


import java.util.UUID;

UUID.randomUUID().toString()

No comments:

Post a Comment