KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > jdo > Sub


1 /*
2  * Copyright (c) 2002 The XDoclet team
3  * All rights reserved.
4  */

5 package test.jdo;
6
7 import java.util.ArrayList JavaDoc;
8 import java.util.HashMap JavaDoc;
9 import java.util.List JavaDoc;
10 import java.util.Map JavaDoc;
11
12 /**
13  * @jdo.persistence-capable
14  * identity-type="datastore"
15  * persistence-capable-superclass="test.jdo.Super"
16  *
17  * @author <a HREF="mailto:youremail@yourdomain.com">youremail@yourdomain.com</a>
18  */

19 public class Sub extends Super {
20     /**
21      * @jdo.field
22      * embedded="true"
23      * null-value="default"
24      */

25     private int subInt;
26
27     /**
28      * @jdo.field
29      */

30     private String JavaDoc subString;
31
32     /**
33      * @jdo.field
34      * collection-type="collection"
35      * default-fetch-group="true"
36      * element-type="test.jdo.SubChild"
37      */

38     private List JavaDoc subList = new ArrayList JavaDoc();
39
40     /**
41      * @jdo.field
42      * collection-type="map"
43      * embedded-key="true"
44      * embedded-value="true"
45      * key-type="test.jdo.MapKey"
46      * value-type="test.jdo.MapValue"
47      */

48     private Map JavaDoc subMap = new HashMap JavaDoc();
49
50     /**
51      * @jdo.field
52      * collection-type="array"
53      * default-fetch-group="false"
54      * embedded-element="false"
55      * element-type="test.jdo.SubChild"
56      */

57     private SubChild[] subChildren = new SubChild[10];
58 }
59
Popular Tags