Hello, I am building an OpenMRS Module using JPA annotation and Hibernate. When importing the module into OpenMRS, I get this error:
Message Request processing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gmaoDao' defined in URL [jar:file:/usr/local/tomcat/.OpenMRS/.openmrs-lib-cache/savicsgmao/savicsgmao.jar!/moduleApplicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'dbSessionFactory' of bean class [org.openmrs.module.savicsgmao.api.dao.impl.GmaoDaoImpl]: Bean property 'dbSessionFactory' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Here is my repository. Could someone can support ?