KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > annotations > inheritance > joined > SymbolicLink


1 //$Id: SymbolicLink.java,v 1.1 2005/06/12 20:50:47 oneovthafew Exp $
2

3 package org.hibernate.test.annotations.inheritance.joined;
4
5
6
7 import javax.persistence.Entity;
8
9 import javax.persistence.ManyToOne;
10
11
12
13 @Entity
14
15 public class SymbolicLink extends File {
16
17     
18
19     File target;
20
21
22
23     SymbolicLink() {}
24
25     
26
27     public SymbolicLink(File target) {
28
29         this.target=target;
30
31     }
32
33     
34
35     @ManyToOne(optional=false)
36
37     public File getTarget() {
38
39         return target;
40
41     }
42
43
44
45     public void setTarget(File target) {
46
47         this.target = target;
48
49     }
50
51
52
53
54
55 }
56
57
Popular Tags