I’m writing API for one of our modules to manage Lab data. My model contains a class
LabTest, which extends
LabTestAttribute class further extends
BaseAttribute<LabTestAttributeType, LabTest> and implements
Attribute<LabTestAttributeType, LabTest> interface.
The module uses 2.x platform, so I’m using annotations and trying to avoid hibernate mappings in XML. I can see that properties in
BaseOpenmrsData have been annotated. However, I don’t see any annotations for
BaseCustomizableData; neither are these two annotated as
My question is why are these classes not annotated and how do I use them in my child classes without defining ORM in hibernate.hbm.xml?