mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
60 lines
1.1 KiB
Java
60 lines
1.1 KiB
Java
package org.tests.model.ddd;
|
|
|
|
import io.ebean.annotation.Identity;
|
|
import org.tests.model.ivo.Oid;
|
|
import org.tests.model.ivo.converter.AnEnumType;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Version;
|
|
import java.sql.Timestamp;
|
|
|
|
import static io.ebean.annotation.IdentityGenerated.BY_DEFAULT;
|
|
|
|
@Identity(generated = BY_DEFAULT)
|
|
@Entity
|
|
public class DExhEntity {
|
|
|
|
@Id
|
|
Oid<DExhEntity> oid;
|
|
|
|
String exhange;
|
|
|
|
AnEnumType anEnumType;
|
|
|
|
@Version
|
|
Timestamp lastUpdated;
|
|
|
|
public Oid<DExhEntity> getOid() {
|
|
return oid;
|
|
}
|
|
|
|
public void setOid(Oid<DExhEntity> oid) {
|
|
this.oid = oid;
|
|
}
|
|
|
|
public String getExhange() {
|
|
return exhange;
|
|
}
|
|
|
|
public void setExhange(String exhange) {
|
|
this.exhange = exhange;
|
|
}
|
|
|
|
public Timestamp getLastUpdated() {
|
|
return lastUpdated;
|
|
}
|
|
|
|
public void setLastUpdated(Timestamp lastUpdated) {
|
|
this.lastUpdated = lastUpdated;
|
|
}
|
|
|
|
public AnEnumType getAnEnumType() {
|
|
return anEnumType;
|
|
}
|
|
|
|
public void setAnEnumType(AnEnumType anEnumType) {
|
|
this.anEnumType = anEnumType;
|
|
}
|
|
}
|