Salome HOME
Copyrights update 2015.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / kernel / IdGenerator.java
1 /*****************************************************************************
2  * Company         OPEN CASCADE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   27.12.2012
6  * @author         $Author$
7  * @version        $Revision$
8  * @copyright      OPEN CASCADE 2012-2015
9  *****************************************************************************/
10
11 package org.splat.dal.bo.kernel;
12
13 import java.util.UUID;
14
15 /**
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().
20  * 
21  * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
22  */
23 public class IdGenerator {
24         public static String createId() {
25                 UUID uuid = java.util.UUID.randomUUID();
26                 return uuid.toString();
27         }
28 }