Files
ebean/src/test/java/org/tests/idkeys/db/AuditLog.java
T

47 lines
1.1 KiB
Java

package org.tests.idkeys.db;
import io.ebean.annotation.Identity;
import javax.persistence.Entity;
import javax.persistence.Id;
import static io.ebean.annotation.IdentityGenerated.BY_DEFAULT;
@Identity(generated = BY_DEFAULT, start = 1000, cache = 100)
@Entity
// Just let Ebean define Identity mechanism for testing across all DB types
//@SequenceGenerator(name = "AD_SEQ_NAME", sequenceName = "AD_SEQ")
public class AuditLog {
@Id
//@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AD_SEQ_NAME")
private Long id;
private String description;
private String modifiedDescription;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getModifiedDescription() {
return modifiedDescription;
}
public void setModifiedDescription(String modifiedDescription) {
this.modifiedDescription = modifiedDescription == null ? null : "_" + modifiedDescription + "_";
}
}