01: package org.osbl.persistence.model;
02:
03: import org.conform.Property;
04:
05: public class TreeNodeEntity<T> extends Entity {
06: @Property(mandatory="true")
07: T tree;
08:
09: @Property(mandatory="true")
10: String path;
11: int depth;
12:
13: public T getTree() {
14: return tree;
15: }
16:
17: public void setTree(T tree) {
18: this .tree = tree;
19: }
20:
21: public String getPath() {
22: return path;
23: }
24:
25: public void setPath(String path) {
26: this .path = path;
27: }
28:
29: public int getDepth() {
30: return depth;
31: }
32:
33: public void setDepth(int depth) {
34: this.depth = depth;
35: }
36: }
|