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