mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
44 lines
814 B
Java
44 lines
814 B
Java
package org.tests.order;
|
|
|
|
import io.ebean.annotation.Index;
|
|
|
|
import javax.persistence.DiscriminatorColumn;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Inheritance;
|
|
import javax.persistence.InheritanceType;
|
|
import javax.persistence.MappedSuperclass;
|
|
|
|
@Entity
|
|
@MappedSuperclass
|
|
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
|
|
@DiscriminatorColumn(name = "type")
|
|
@Index(columnNames = "type")
|
|
public class OrderReferencedParent {
|
|
|
|
@Id
|
|
Long id;
|
|
|
|
String name;
|
|
|
|
public OrderReferencedParent(final String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(final Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(final String name) {
|
|
this.name = name;
|
|
}
|
|
}
|