* Situation * : * Class ' {{ AbstractIntake ' }} which has the field ' {{ m_startDate ' }} * Class ' {{ Intake ' }} extends ' {{ AbstractIntake ' }} * In Class ' generated class {{ AbstractIntake_ .java" }} there is the line: {code} public static volatile SingularAttribute<WorkOrder, MESDateField> m_startDate; ' {code}, where {{ m_startDate ' }} is of type {{ MESDateField }} which is an {{ Embeddable }} object.
* Result * : I get the following error when the metamodel is checked: {noformat} Unable to locate static metamodel field : gti.domain.Intake_#m_startDate {noformat} * Expected * : ' {{ Intake_ ' }} subclasses ' {{ AbstractIntake_ ' }} and therefore has access to the static variable ' {{ m_startDate ' }} (in {{ AbstractIntake_ }} ). The errormessage error message is therefore not valid!
* Hints * : {{ MESDateField }} is an {{ Embeddable }} object. It seems to only to go wrong with Embeddable objects. Maybe the problem is in " {{ MetadataContext.registerAttribute() ' }} . There ONLY the {{ getDeclaredField(name) }} of the class is checked but NOT the subclasses of that class!
|