KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > annotations > entity > Bid


1 //$Id: Bid.java,v 1.3 2005/07/26 04:57:09 epbernard Exp $
2
package org.hibernate.test.annotations.entity;
3
4 import javax.persistence.Column;
5 import javax.persistence.Entity;
6 import javax.persistence.Id;
7
8 /**
9  * @author Emmanuel Bernard
10  */

11 @Entity
12 public class Bid {
13     private Integer JavaDoc id;
14     private String JavaDoc description;
15     private Starred note;
16     private Starred editorsNote;
17     private Boolean JavaDoc approved;
18
19     @Column(columnDefinition = "VARCHAR(10)")
20     public Starred getEditorsNote() {
21         return editorsNote;
22     }
23
24     public void setEditorsNote(Starred editorsNote) {
25         this.editorsNote = editorsNote;
26     }
27
28     @Id
29     public Integer JavaDoc getId() {
30         return id;
31     }
32
33     public void setId(Integer JavaDoc id) {
34         this.id = id;
35     }
36
37     public String JavaDoc getDescription() {
38         return description;
39     }
40
41     public void setDescription(String JavaDoc description) {
42         this.description = description;
43     }
44
45     public Starred getNote() {
46         return note;
47     }
48
49     public void setNote(Starred note) {
50         this.note = note;
51     }
52
53     public Boolean JavaDoc getApproved() {
54         return approved;
55     }
56
57     public void setApproved(Boolean JavaDoc approved) {
58         this.approved = approved;
59     }
60
61 }
62
Popular Tags