mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
35 lines
530 B
Java
35 lines
530 B
Java
package com.avaje.tests.model.basic;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.Id;
|
|
|
|
@Entity
|
|
public class ECustomId {
|
|
|
|
@Id @GeneratedValue(generator = "shortUid")
|
|
String id;
|
|
|
|
String name;
|
|
|
|
public ECustomId(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
}
|