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