#1453 - @Formula property included in DDL when on @Inheritance bean and without @Transient

This commit is contained in:
rob bygrave
2018-07-15 15:36:29 +12:00
parent b6d3dc3516
commit d555122067
2 changed files with 17 additions and 5 deletions
@@ -1,5 +1,7 @@
package org.tests.model.basic;
import io.ebean.annotation.Formula;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
@@ -9,6 +11,9 @@ public class Cat extends Animal {
String name;
@Formula(select = "${ta}.species")
String catFormula;
public String getName() {
return name;
}
@@ -17,4 +22,11 @@ public class Cat extends Animal {
this.name = name;
}
public String getCatFormula() {
return catFormula;
}
public void setCatFormula(String catFormula) {
this.catFormula = catFormula;
}
}