1 package org.hibernate.ejb.test.pack.explodedpar; 3 4 import javax.persistence.Entity; 5 import javax.persistence.Id; 6 import javax.persistence.GeneratorType; 7 8 11 @Entity 12 public class Carpet { 13 private Integer id; 14 private String country; 15 16 @Id(generate=GeneratorType.AUTO) 17 public Integer getId() { 18 return id; 19 } 20 21 public void setId(Integer id) { 22 this.id = id; 23 } 24 25 public String getCountry() { 26 return country; 27 } 28 29 public void setCountry(String country) { 30 this.country = country; 31 } 32 } 33 | Popular Tags |