KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > annotations > onetoone > Heart


1 //$Id: Heart.java,v 1.1 2005/05/12 13:33:34 epbernard Exp $
2
package org.hibernate.test.annotations.onetoone;
3
4 import javax.persistence.Entity;
5 import javax.persistence.Id;
6
7 /**
8  * @author Emmanuel Bernard
9  */

10 @Entity
11 public class Heart {
12     private Integer JavaDoc id;
13
14     @Id
15     public Integer JavaDoc getId() {
16         return id;
17     }
18
19     public void setId(Integer JavaDoc id) {
20         this.id = id;
21     }
22 }
23
Popular Tags