mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
34 lines
542 B
Java
34 lines
542 B
Java
package org.tests.merge;
|
|
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.MappedSuperclass;
|
|
import javax.persistence.Version;
|
|
import java.util.UUID;
|
|
|
|
@MappedSuperclass
|
|
public class MBase {
|
|
|
|
@Id @GeneratedValue
|
|
private UUID id;
|
|
|
|
@Version
|
|
private long version;
|
|
|
|
public UUID getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(UUID id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public long getVersion() {
|
|
return version;
|
|
}
|
|
|
|
public void setVersion(long version) {
|
|
this.version = version;
|
|
}
|
|
}
|