1 22 package org.jboss.ejb3.test.regression.ejbthree316; 23 24 import java.io.Serializable ; 25 import javax.persistence.Entity; 26 import javax.persistence.Id; 27 import javax.persistence.GeneratedValue; 28 import javax.persistence.GenerationType; 29 30 36 @Entity 37 public class Customer implements Serializable 38 { 39 private int id; 40 private String name; 41 42 43 @Id 44 @GeneratedValue(strategy= GenerationType.AUTO) 45 public int getId() 46 { 47 return id; 48 } 49 50 public void setId(int id) 51 { 52 this.id = id; 53 } 54 55 public String getName() 56 { 57 return name; 58 } 59 60 public void setName(String name) 61 { 62 this.name = name; 63 } 64 } 65 | Popular Tags |