Hello, I found strange behavior of Metamodel Generator when child entity hasn't own access type annotation. For example, we have a java parent class like this:
@Entity
@Getter @Setter
@Table(name="CUSTOMER")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "ENTITY_ID", discriminatorType = DiscriminatorType.INTEGER)
@Access(AccessType.FIELD) public class Customer {
private Integer id;
@Id
@Column(name = "CUSTOMER_ID")
@GeneratedValue()
@Access(AccessType.PROPERTY) public Integer getId() {
return id;
}
@Column(name = "CUSTOMER_NAME")
private String name;
and child class like this:
@Entity
@DiscriminatorValue("1")
public class Client extends Customer{
}
When Metamodel Generator process entities he skip field "name" in static metamodel because he choose AccessType.PROPERTY from getId() method. I have created demo app with this bug to fast reproducing of this bug: generror.zip![](cid:jira-generated-image-static-link_attachment_7-232ae98b-2aaf-4c54-89f7-1f1abb7bef5d) |