mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
58 lines
982 B
Java
58 lines
982 B
Java
package org.multitenant.partition;
|
|
|
|
import io.ebean.annotation.WhenCreated;
|
|
import io.ebean.annotation.WhenModified;
|
|
|
|
import javax.persistence.Id;
|
|
import javax.persistence.MappedSuperclass;
|
|
import javax.persistence.Version;
|
|
import java.time.Instant;
|
|
|
|
@MappedSuperclass
|
|
public abstract class MtBaseDomain {
|
|
|
|
@Id
|
|
long id;
|
|
|
|
@WhenModified
|
|
Instant whenModified;
|
|
|
|
@WhenCreated
|
|
Instant whenCreated;
|
|
|
|
@Version
|
|
long version;
|
|
|
|
public long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Instant getWhenModified() {
|
|
return whenModified;
|
|
}
|
|
|
|
public void setWhenModified(Instant whenModified) {
|
|
this.whenModified = whenModified;
|
|
}
|
|
|
|
public Instant getWhenCreated() {
|
|
return whenCreated;
|
|
}
|
|
|
|
public void setWhenCreated(Instant whenCreated) {
|
|
this.whenCreated = whenCreated;
|
|
}
|
|
|
|
public long getVersion() {
|
|
return version;
|
|
}
|
|
|
|
public void setVersion(long version) {
|
|
this.version = version;
|
|
}
|
|
}
|