KickJava   Java API By Example, From Geeks To Geeks.

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


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 javax.jcr.Value;
8 import javax.jcr.StringValue;
9 import javax.jcr.ValueFormatException;
10 import java.util.Set JavaDoc;
11
12 /**
13  * Created by The eXo Platform SARL .
14  * @author <a HREF="mailto:geaz@users.sourceforge.net">Gennady Azarenkov</a>
15  * @version $Id: PropertyRecord.java,v 1.2 2004/11/02 18:34:37 geaz Exp $
16  *
17  * @hibernate.class table="JCR_CONTAINER_PROPERTY"
18  */

19 public class PropertyRecord {
20
21     private Long JavaDoc id;
22     private String JavaDoc name;
23     private Set JavaDoc values;
24
25     public PropertyRecord() {
26     }
27
28     /** @hibernate.id generator-class="increment" */
29     public Long JavaDoc getId() {
30         return id;
31     }
32
33     public void setId(Long JavaDoc id) {
34         this.id = id;
35     }
36
37   /**
38    * @hibernate.property name="NAME"
39    * not-null="true"
40    */

41     public String JavaDoc getName() {
42         return name;
43     }
44
45     public void setName(String JavaDoc name) {
46         this.name = name;
47     }
48
49     /**
50      * @hibernate.set lazy="true"
51      * cascade="all"
52      * @hibernate.collection-one-to-many class="org.exoplatform.services.jcr.impl.storage.rdb.container.data.ValueRecord"
53      * @hibernate.collection-key column="PROPERTY_ID"
54      */

55     public Set JavaDoc getValues() {
56         return values;
57     }
58
59     public void setValues(Set JavaDoc values) {
60         this.values = values;
61     }
62
63 }
64
Popular Tags