1 package net.java.examples.hmp.model.test.userchangeinfo;
\r
3 import javax.persistence.Column;
\r
4 import javax.persistence.Entity;
\r
5 import javax.persistence.EntityListeners;
\r
6 import javax.persistence.GeneratedValue;
\r
7 import javax.persistence.Id;
\r
8 import javax.persistence.SequenceGenerator;
\r
9 import javax.persistence.Table;
\r
11 import net.java.examples.hmp.model.domain.callback.UserChangeTrackListener;
\r
12 import net.java.examples.hmp.model.domain.userchangeinfo.BaseUserChangeTrackedEntity;
\r
15 * Entity zum Testen der UserChangeInfo Funktionalitaet.
\r
18 @Table(name = "HMP_UCI_TEST_ENTITY")
\r
19 @EntityListeners(UserChangeTrackListener.class)
\r
20 public class UserChangeInfoTestEntity extends BaseUserChangeTrackedEntity<Long> {
\r
22 private static final long serialVersionUID = -530295910082787747L;
\r
25 @Column(name = "ID", nullable = false)
\r
26 @GeneratedValue(generator = "UserchangeInfoTestEntitySeq")
\r
27 @SequenceGenerator(name = "UserchangeInfoTestEntitySeq", sequenceName = "HMP_SEQ", allocationSize = 1)
\r
30 @Column(name = "NAME", nullable = false)
\r
31 private String name;
\r
34 public Long getId() {
\r
38 public void setId(Long id) {
\r
42 public String getName() {
\r
46 public void setName(String name) {
\r
51 public String toString() {
\r
52 return "UserChangeInfoTestEntity [id=" + id + ", name=" + name + "]";
\r