mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#919 - io.ebean package initial
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package org.tests.idkeys.db;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@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 + "_";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user