How to add a new table to openmrs DAO

I am new to openmrs sdk and module system. I need to add a new table to openmrs DB then create the entity for that thereafter the service layer, I need help on achieving this as I don’t know how openmrs module handles it.

Hello @morrisng , have you had a look at this, also read about liquibase on how to add a table to openmrs

hey @morrisng have you taken a look at this http://devmanual.openmrs.org/en/Case_study/yourFirstModule.html

Thank you, but I can seem to find any .hbm.xml files in my module as describe by that article.

You create those files by yourself.

1 Like

okay…if I understand you correctly, I need to always create a .hbm.xml file for any new table that I which to add not generating for all existing tables.

Yes you need to create new.