KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: ProgramExecution.java,v 1.1 2005/06/16 19:41:16 epbernard Exp $
2
package org.hibernate.test.annotations.inheritance.joined;
3
4 import javax.persistence.AccessType;
5 import javax.persistence.Entity;
6 import javax.persistence.FetchType;
7 import javax.persistence.ManyToOne;
8 import javax.persistence.Id;
9 import javax.persistence.GeneratorType;
10
11 /**
12  * @author Emmanuel Bernard
13  */

14 @Entity(access=AccessType.FIELD)
15 public class ProgramExecution {
16     @Id(generate=GeneratorType.AUTO)
17     private Integer JavaDoc id;
18     private String JavaDoc action;
19     @ManyToOne(fetch=FetchType.LAZY)
20     private File appliesOn;
21
22
23     public File getAppliesOn() {
24         return appliesOn;
25     }
26
27     public void setAppliesOn(File appliesOn) {
28         this.appliesOn = appliesOn;
29     }
30
31     public String JavaDoc getAction() {
32         return action;
33     }
34
35     public void setAction(String JavaDoc action) {
36         this.action = action;
37     }
38
39
40     public Integer JavaDoc getId() {
41         return id;
42     }
43
44     public void setId(Integer JavaDoc id) {
45         this.id = id;
46     }
47 }
48
Popular Tags