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