Using Spring Data with MongoDB: Creating a Model
Next, create the model class to use with the Spring Data MongoDB project. A domain object to be persisted to MongoDB server must be annotated with @Document. Create a POJO class Catalog in the com.mongo.model package. Add fields for id, journal, edition, publisher, title, and author and the corresponding get/set methods. Annotate the id field [ [ ...]