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