public class UUIDListener extends DefaultSaveOrUpdateEventListener
{
private void generateUUID(Object object)
{
UUIDSupport uuidOwner = (UUIDSupport) object;
if (uuidOwner.getUuid() == null || uuidOwner.getUuid().isEmpty())
{
uuidOwner.setUuid(UUID.randomUUID().toString().trim());
}
}