Example usage for org.springframework.data.mongodb.core.mapping PersonNullProperties getId

List of usage examples for org.springframework.data.mongodb.core.mapping PersonNullProperties getId

Introduction

In this page you can find the example usage for org.springframework.data.mongodb.core.mapping PersonNullProperties getId.

Prototype

public ObjectId getId() 

Source Link

Usage

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());
}