I am currently learning MongoDB and Spring and need to know whether It is compulsory to create Repository classes in MongoDB - Spring based application?? If anyone could help a bit in knowing a more about Spring-MongoDB design a bit.
I have worked on Spring-JPA, I used to create Jpa layer, Dao Layer, Service layer and above all these I used to implement Spring-MVC. So same way what would be the configuration/design of application, which one is mostly used?? I know it depends on the requirement of application but want to know. Thank you in advance.
Not exactly sure what you are asking. But I would think you would want to separate data access from your other code regardless of the DB that you use. And Spring Data Mongo can make your code look very much like you had with JPA. With Annotated Domain objects mapped to your documents and even easier to write Repositories.