KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > hibernate > CompositeIdEntity


1 package test.hibernate;
2
3 /**
4  * demonstrate composite ID
5  *
6  * @author ko5tik ( Konstantin Pribluda )
7  * @hibernate.class
8  */

9 public class CompositeIdEntity
10 {
11
12     private CompositeId _id;
13     private String JavaDoc _foo;
14     /**
15      * @hibernate.id generator-class="assigned"
16      */

17     public CompositeId getId() {
18         return _id;
19     }
20
21     public void setId(CompositeId id) {
22         _id = id;
23     }
24
25     public String JavaDoc getFoo() {
26         return _foo;
27     }
28     /**
29      * foo value
30      *
31      * @return String
32      * @hibernate.property
33      */

34
35     public void setFoo(String JavaDoc foo) {
36         _foo = foo;
37     }
38
39 }
40
41
Popular Tags