/[projects]/miscJava/HiberTest1/src/dk/thoerup/hibertest1/Department.java
ViewVC logotype

Annotation of /miscJava/HiberTest1/src/dk/thoerup/hibertest1/Department.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 599 - (hide annotations) (download)
Sun Feb 21 19:03:46 2010 UTC (14 years, 3 months ago) by torben
File size: 689 byte(s)
added some hibernate test code
1 torben 599 package dk.thoerup.hibertest1;
2    
3     import java.io.Serializable;
4    
5     import javax.persistence.Column;
6     import javax.persistence.Entity;
7     import javax.persistence.Id;
8     import javax.persistence.Table;
9    
10    
11     @Entity
12     @Table(name = "department")
13     public class Department implements Serializable {
14    
15     private static final long serialVersionUID = 1L;
16    
17    
18    
19     public Department() {
20    
21     }
22     @Id
23     @Column(name = "id")
24     Integer id;
25    
26     @Column(name = "name")
27     String name;
28    
29    
30    
31     public Integer getId() {
32     return id;
33     }
34    
35     public void setId(Integer id) {
36     this.id = id;
37     }
38    
39     public String getName() {
40     return name;
41     }
42    
43     public void setName(String name) {
44     this.name = name;
45     }
46    
47     }

  ViewVC Help
Powered by ViewVC 1.1.20