package com.capitalone.dashboard.model; import org.bson.types.ObjectId; import org.springframework.data.annotation.Id; /** * Base class for all Mongo model classes that has an id property. */ public class BaseModel { @Id private ObjectId id; public ObjectId getId() { return id; } public void setId(ObjectId id) { this.id = id; } }