mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
47 lines
688 B
Java
47 lines
688 B
Java
package org.tests.insert;
|
|
|
|
import io.ebean.Model;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.Id;
|
|
import java.util.UUID;
|
|
|
|
@Entity
|
|
public class EIdUidBean extends Model {
|
|
|
|
@Id
|
|
private long id;
|
|
|
|
@GeneratedValue
|
|
@Column(unique = true)
|
|
private UUID uuid;
|
|
|
|
String name;
|
|
|
|
public EIdUidBean(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public UUID getUuid() {
|
|
return uuid;
|
|
}
|
|
|
|
public void setUuid(UUID uuid) {
|
|
this.uuid = uuid;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
}
|