I have been using the code below to generate my UUID and post it in the database :
if (addData.getGeneratedDocId() == null || addData.getGeneratedDocId().equals("")) {
//addData.setGeneratedDocId(uniqueID);
addData.setGeneratedDocId(UUID.randomUUID().toString());
}
The problem is when I deploy my websites in AWS hosting, things start to get worst, I am having duplicate UUID constantly, I have not face any issues while running in the Local Host, any clue? Thanks in advance :)