List of usage examples for org.springframework.data.mongodb.core.mapping PersonNullProperties getId
public ObjectId getId()
From source file:org.springframework.data.mongodb.core.mapping.MappingTests.java
@Test public void testPersonWithNullProperties() { PersonNullProperties p = new PersonNullProperties(); template.insert(p);/*from w ww.j a va2 s . c o m*/ assertNotNull(p.getId()); }