1 package org.jboss.ejb3.test.regression.ejbthree440.model; 2 3 import java.io.Serializable ; 4 5 import javax.persistence.*; 6 7 @Entity 8 @Table(name="TBLOCATION") 9 @TableGenerator(name="LOC_SEQ") 10 public class Location implements Serializable { 11 private int id, version; 12 private String name, description; 13 14 public String getDescription() { 15 return description; 16 } 17 18 public void setDescription(String description) { 19 this.description = description; 20 } 21 22 @Id 23 @GeneratedValue(strategy=GenerationType.TABLE, generator="LOC_SEQ") 24 public int getId() { 25 return id; 26 } 27 28 public void setId(int id) { 29 this.id = id; 30 } 31 32 @Version 33 @Column(name="versionnr") 34 public int getVersion() { 35 return version; 36 } 37 38 public void setVersion(int version) { 39 this.version = version; 40 } 41 42 public String getName() { 43 return name; 44 } 45 46 public void setName(String name) { 47 this.name = name; 48 } 49 50 } 51 | Popular Tags |