Files
ebean/ebean-querybean/src/test/java/org/example/domain/ASuperCat.java
T
Rob Bygrave 0bb2f104a4 [QueryBeans] Fix for missing inherited properties when parent only has @DiscriminatorValue
A parent in the Inheritance hierarchy has @DiscriminatorValue but not the @Inheritance annotation. The bug means the inherited properties are not included on the generated query bean.

The fix is to the querybean-generator to pick up inherited properties for this case.
2023-02-28 23:02:19 +13:00

24 lines
406 B
Java

package org.example.domain;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
@DiscriminatorValue("SCAT")
@Entity
public class ASuperCat extends ACat {
private String superCat;
public ASuperCat(String name) {
super(name);
}
public String getSuperCat() {
return superCat;
}
public void setSuperCat(String superCat) {
this.superCat = superCat;
}
}