KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > legacy > Custom


1 //$Id: Custom.java,v 1.2 2005/06/22 18:58:15 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4
5 public class Custom implements Cloneable JavaDoc {
6     String JavaDoc id;
7     private String JavaDoc name;
8     
9     public Object JavaDoc clone() {
10         try {
11             return super.clone();
12         }
13         catch (CloneNotSupportedException JavaDoc cnse) {
14             throw new RuntimeException JavaDoc();
15         }
16     }
17
18     void setName(String JavaDoc name) {
19         this.name = name;
20     }
21
22     String JavaDoc getName() {
23         return name;
24     }
25
26 }
27
28
29
30
31
32
33
Popular Tags