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