Application Name: OpenMrs
Question:
Created a new module by using Maven Archetype
mvn module-wizard:generate -s settings.xml
Group ID: org.openmrs.module: :
Artifact ID: basicexample: : department
Version: 1.0-SNAPSHOT: :
Module name: Basic Example: : department
Module description: Helps to start writing OpenMRS modules: :
Module author: xyz: :
OpenMRS version to depend on: 1.8.2: :
Do you want to add an admin page link: (y/n) y: : y
Do you want to add a service layer: (y/n) y: : y
Service name: department: :
Model object name: department: :
Do you want to add another module to depend on: (y/n) n: : n
Ready to create a module. Are the above values correct: (y/n) : y
followed the below url to add a new field to your data model http://en.flossmanuals.net/openmrs-developers-guide/hello-world-module/ but when tries to persist using api
sessionFactory.getCurrentSession().save(department);
i am getting a exception getting org.hibernate.MappingException: Unknown entity: org.openmrs.module.department.Department