• 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

Anyone read the book or learn the topics about Spring Data

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just check the contents of the book Spring Data.

It seems very interesting. Does anyone use ever Spring data, batch, integration and how do you feel about them?

 
Ranch Hand
Posts: 491
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't write any DAO code. For ex: I just relied on Spring Data JPA module to do the job for me and if needed few customization (easy)

Just download any Spring Data and experiment with it:
http://projects.spring.io/spring-data/
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use it all the time its great
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring Data JPA is amazing. It makes it super easy to store entities in the database and do queries. You hardly have to write any code at all yourself.

You create a repository interface, but you don't have to write any implementation yourself - Spring will automatically generate the implementation. It is very smart, just by looking at the names of the methods you put in the interface it can automatically an implementation that does what you want.

For example, suppose you have a Customer entity and you want to have a method to find customers by last name. You create an interface that looks like this:

and Spring will automatically generate the right implementation. It does this by looking at the method name; from "findByLastName" it automatically understands that you want to do a query like "select Customer c where c.lastName = ...". Besides this example, there are lots of other possibilities for which it can automatically generate the implementation for the methods.

See this tutorial and the reference documentation.
 
reply
    Bookmark Topic Watch Topic
  • New Topic