mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
26 lines
658 B
Java
26 lines
658 B
Java
package org.tests.inheritance.cache;
|
|
|
|
import javax.persistence.DiscriminatorColumn;
|
|
import javax.persistence.DiscriminatorType;
|
|
import javax.persistence.DiscriminatorValue;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Inheritance;
|
|
import javax.persistence.InheritanceType;
|
|
|
|
@Entity
|
|
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
|
|
@DiscriminatorColumn(name = "dtype", discriminatorType = DiscriminatorType.INTEGER)
|
|
@DiscriminatorValue(value = "0")
|
|
public class CIStreetParent extends CIBaseModel {
|
|
|
|
protected String name;
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
}
|