INT-3346: Add @Id to CMDbMS.MessageDocument

JIRA: https://jira.spring.io/browse/INT-3346

An `@Id` field is required when MongoDB auditing
is enabled in the ApplicationContext.

This change does not make the document Auditable,
it just prevents an exception being thrown when
auditing is enabled.
This commit is contained in:
Artem Bilan
2014-03-28 15:39:34 +02:00
committed by Gary Russell
parent 66a23a2835
commit 39a7fb3adf
2 changed files with 11 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ public class ConfigurableMongoDbMessageGroupStoreTests extends AbstractMongoDbMe
TestGateway gateway = context.getBean(TestGateway.class);
String result = gateway.service("foo");
assertEquals("FOO", result);
context.close();
}
public static interface TestGateway {