mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
24 lines
494 B
Java
24 lines
494 B
Java
package org.tests.singleTableInheritance.model;
|
|
|
|
import javax.persistence.DiscriminatorValue;
|
|
import javax.persistence.Entity;
|
|
|
|
@Entity
|
|
@DiscriminatorValue("EXT")
|
|
public class ZoneExternal extends Zone {
|
|
private String attribute;
|
|
|
|
public String getAttribute() {
|
|
return attribute;
|
|
}
|
|
|
|
public void setAttribute(String attribute) {
|
|
this.attribute = attribute;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "ZoneExternal " + getId() + " \"" + getAttribute() + "\"";
|
|
}
|
|
}
|