KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > jcr > impl > storage > rdb > container > data > NodeRecord


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5
6 package org.exoplatform.services.jcr.impl.storage.rdb.container.data;
7 import java.util.Set JavaDoc;
8
9 /**
10  * Created by The eXo Platform SARL .
11  *
12  * @author <a HREF="mailto:geaz@users.sourceforge.net">Gennady Azarenkov</a>
13  * @version $Id: NodeRecord.java,v 1.2 2004/11/02 18:34:15 geaz Exp $
14  *
15  * @hibernate.class table="JCR_CONTAINER_NODE"
16  *
17  */

18
19 public class NodeRecord {
20
21   private Long JavaDoc id;
22   private String JavaDoc path;
23   private Set JavaDoc properties;
24   private Long JavaDoc parentId;
25
26   public NodeRecord() {
27   }
28
29   /**
30    * @hibernate.id generator-class="increment"
31    **/

32   public Long JavaDoc getId() {
33     return id;
34   }
35
36   public void setId(Long JavaDoc id) {
37     this.id = id;
38   }
39
40   /**
41    * @hibernate.property name="PATH"
42    * not-null="true"
43    */

44    public String JavaDoc getPath() {
45      return path;
46    }
47    public void setPath(String JavaDoc path) {
48      this.path = path;
49    }
50
51   /**
52    * @hibernate.property name="PARENT_ID"
53    * not-null="true"
54    */

55    public Long JavaDoc getParentId() {
56      return parentId;
57    }
58    public void setParentId(Long JavaDoc parentId) {
59      this.parentId = parentId;
60    }
61
62     /**
63      * @hibernate.set lazy="true"
64      * cascade="all"
65      * @hibernate.collection-one-to-many class="org.exoplatform.services.jcr.impl.storage.rdb.container.data.PropertyRecord"
66      * @hibernate.collection-key column="NODE_ID"
67      */

68     public Set JavaDoc getProperties() {
69         return properties;
70     }
71
72     public void setProperties(Set JavaDoc properties) {
73         this.properties = properties;
74     }
75
76
77 }
78
Popular Tags