1 22 package org.jboss.ejb3.test.regression; 23 24 import javax.persistence.Entity; 25 import javax.persistence.Table; 26 import javax.persistence.Column; 27 import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; 28 import javax.persistence.Id; 29 import javax.persistence.Entity; 30 31 36 @Entity 37 @Table(name = "CONCRETE") 38 public class ConcreteEntity extends AbstractEntity 39 { 40 protected Integer id; 41 protected String name; 42 43 @Id @GeneratedValue(strategy=GenerationType.AUTO) 44 public Integer getId() 45 { 46 return id; 47 } 48 49 public void setId(Integer id) 50 { 51 this.id = id; 52 } 53 54 @Column(name = "NAME", nullable = false, length = 100) 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 |