Summary: I\'m developing a persistent Java web application, and I need to make sure that all resources I persist have globally unique identifiers to prevent
public class UniqueID { private static long startTime = System.currentTimeMillis(); private static long id; public static synchronized String getUniqueID() { return "id." + startTime + "." + id++; } }