• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do I have to create Repository classes in MongoDB - spring configuration?

 
Greenhorn
Posts: 8
Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic