mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
80 lines
1.2 KiB
Java
80 lines
1.2 KiB
Java
package com.avaje.tests.model.basic;
|
|
|
|
import java.sql.Timestamp;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Table;
|
|
|
|
import com.avaje.ebean.annotation.EnumValue;
|
|
import com.avaje.ebean.annotation.Index;
|
|
|
|
@Entity
|
|
@Table(name = "e_basic")
|
|
public class EBasic {
|
|
|
|
public enum Status {
|
|
@EnumValue("N")
|
|
NEW,
|
|
|
|
@EnumValue("A")
|
|
ACTIVE,
|
|
|
|
@EnumValue("I")
|
|
INACTIVE,
|
|
}
|
|
|
|
@Id
|
|
Integer id;
|
|
|
|
Status status;
|
|
|
|
@Index
|
|
String name;
|
|
|
|
String description;
|
|
|
|
Timestamp someDate;
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Status getStatus() {
|
|
return status;
|
|
}
|
|
|
|
public void setStatus(Status status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public Timestamp getSomeDate() {
|
|
return someDate;
|
|
}
|
|
|
|
public void setSomeDate(Timestamp someDate) {
|
|
this.someDate = someDate;
|
|
}
|
|
|
|
}
|