1 22 package org.jboss.ejb3.test.clusteredsession; 23 24 import javax.persistence.Entity; 25 import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; 26 import javax.persistence.Id; 27 28 33 @Entity 34 public class Customer implements java.io.Serializable 35 { 36 long id; 37 String name; 38 39 public 40 Customer() 41 { 42 } 43 44 @Id @GeneratedValue(strategy=GenerationType.IDENTITY) 45 public 46 long getId() 47 { 48 return id; 49 } 50 51 public 52 String getName() 53 { 54 return name; 55 } 56 57 public 58 void setId(long long1) 59 { 60 id = long1; 61 } 62 63 public 64 void setName(String string) 65 { 66 name = string; 67 } 68 69 } 70 71 | Popular Tags |