KnpCode
Java, Spring, BigData, Web development tutorials with examples
 
Skip to content
  • Ubuntu
  • Big Data
    • Hadoop Tutorials
  • Java
    • Core Java Tutorials – Beginner
    • Core Java Tutorials – Advanced
    • Java Programs
  • spring
    • Spring Framework
Home Posts tagged "spring data"

Tag: spring data

Spring Boot + Data JPA + Oracle One to Many Example

UshaK April 25, 2020 September 11, 2020spring boot spring boot, spring data 0

In this article we’ll see an example of Spring Boot + Data JPA + Oracle DB + Spring REST. In the example two tables are used to demonstrate One-to-Many and Many-to-One relationship. In the Spring Data JPA repositories used in the example, custom methods are also used to show how…

Continue reading

Spring Boot + Spring Data JPA + MySQL + Spring RESTful

UshaK April 25, 2020 February 15, 2021spring boot spring boot, spring data 0

In this tutorial we’ll see how to create Spring Boot + Spring Data JPA + MySQL + Spring RESTful Webservice. There is already a similar example in the post Spring Data JPA Example. By using Spring Boot you will see a significant reduction in required configuration. If you want to…

Continue reading

Spring Data JPA Auditing Example

UshaK March 26, 2020 July 24, 2020spring spring data, spring framework 1

In this post we’ll see how to configure Spring Data JPA to automatically store auditing information like created by, created date, modified by, modified date for any entity. Spring Data auditing support Spring Data provides support to keep track of who created or changed an entity and the time when…

Continue reading

Spring Data JPA Pagination and Sorting Example

UshaK March 25, 2020 July 24, 2020spring spring data, spring framework 0

In this Spring Data JPA pagination and sorting example we’ll see how to use PagingAndSortingRepository to paginate access by providing number of records per page and page number. You can sort records too by passing the field (or group of fields) on which sorting is done along with page properties…

Continue reading

Spring Data JPA @Query Annotation Example

UshaK March 24, 2020 July 24, 2020spring spring data, spring framework 0

In the Spring Data JPA Example we have already seen an integrated example of Spring Rest Controller + JPA (Hibernate) + MySQL. In that example query look up strategy for user defined query was automatic where Spring framework did the work of deriving query by parsing the method name. Though…

Continue reading

Spring Data JPA @NamedQuery Annotation Example

UshaK March 23, 2020 July 24, 2020spring spring data, spring framework 0

In the Spring Data JPA Example we have already seen an integrated example of Spring MVC + JPA (Hibernate) + MySQL. In that example, query look up strategy for user defined query was automatic where Spring framework did the work of deriving query by parsing the method name. Though getting…

Continue reading

Spring Data JPA Example

UshaK March 22, 2020 August 31, 2020spring spring data, spring framework 0

In this Spring Data JPA example we’ll create a rest web service using Spring Web MVC, JPA implementation used is Hibernate and DB is MySQL. Spring Data JPA Spring data JPA is the Spring Data repository support for JPA. By using Spring Data repository abstraction on top of the persistence…

Continue reading

Spring Data Query Methods

UshaK March 21, 2020 July 23, 2020spring spring data, spring framework 0

In this article we’ll see how query is generated in Spring Data for the repository interface methods and what all options are there in Spring Data for query methods. Table of contents Defining Query Methods Query Lookup Strategies Query creation in Spring Data Declaring Query in Spring Data Defining Query…

Continue reading

Spring Data Tutorial

UshaK March 20, 2020 August 31, 2020spring spring data, spring framework 0

Spring Data provides abstraction on top of the persistence store you are using (JPA, NoSQL, JDBC etc.) you can significantly reduce the amount of boilerplate code required to implement data access layers for those persistence stores. As a developer you just need to write your repository interfaces, including custom finder…

Continue reading

Privacy Policy | Disclaimer
Powered by Nirvana & WordPress.