1 /*****************************************************************************
5 * Creation date 27.12.2012
8 * @copyright OPEN CASCADE 2012
9 *****************************************************************************/
11 package org.splat.dal.bo.kernel;
13 import java.util.UUID;
16 * ID Generator. It is supposed to use UUID for identifying persistent objects<BR>
17 * in the same way before and after saving in the database, i.e. before and<BR>
18 * after persistent id generation. The object UID is used for identification in <BR>
19 * equals() and in hashCode().
21 * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
23 public class IdGenerator {
24 public static String createId() {
25 UUID uuid = java.util.UUID.randomUUID();
26 return uuid.toString();