mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
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.
24 lines
406 B
Java
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;
|
|
}
|
|
}
|