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
390 B
Java
24 lines
390 B
Java
package org.example.domain;
|
|
|
|
import javax.persistence.DiscriminatorValue;
|
|
import javax.persistence.Entity;
|
|
|
|
@DiscriminatorValue("CAT")
|
|
@Entity
|
|
public class ACat extends Animal {
|
|
|
|
private String catProp;
|
|
|
|
public ACat(String name) {
|
|
super(name);
|
|
}
|
|
|
|
public String getCatProp() {
|
|
return catProp;
|
|
}
|
|
|
|
public void setCatProp(String catProp) {
|
|
this.catProp = catProp;
|
|
}
|
|
}
|