Failed To Add Table in Openmrs Context (org.hibernate.MappingException: Unknown entity)

Hi all,

I’m trying to create a table for the mergepatientdata module that will store Audits.

I tried to map my entity but on running the test below I got the following error

@Test
public void saveAuditMessage_shouldSaveMessage() {
	PaginatedAuditMessage message = new PaginatedAuditMessage();
	message.setOperation(Operation.EXPORT);
	message.setStatus(Status.Failure);
	message.setResources(resources);
	message.setFailurDetails(errorDetails);
	service.saveAuditMessage(message);
}

Hibernate Mappping.

Config.xml

Application context

The Entity.

@cc: @dkayiwa, @ssmusoke

You need to share the log.

I had shared it.

cc: @dkayiwa

Did you take a look at this? dataset error "NO such Table Exception"

Thanks, the issue is resolved :smile: