In my previous article I have explained about how to use @Query annotation for writing the custom queries for Spring Data JPA applications. In this post, I will explain another type of writing the custom queries using @NamedQuery annotation that is part of the JPA specification. What is NamedQuery? There are two types of queries …
Spring Data JPA
@Query Annotation in Spring Data JPA
In my previous post on Spring Data, I have explained the basic concepts and configurations for Spring Data JPA. In this tutorial, I am going to explain @Query annotation and how to create custom query using the @Query annotation. The greatest advantage of using Spring Data is that it implements the repositories at run time …
Spring Data JPA Tutorial using Spring Boot
This tutorial guides you through on building simple REST APIs using Spring Data JPA and Spring Boot. At the end of this tutorial, you would be able to write the applications with Spring Data JPA using Spring Boot. In our earlier tutorials we have covered about Spring Data JPA and JPA frameworks. But, this tutorial uses Spring …
Spring Data JPA : Custom Repository / Query Methods Example
In this tutorial i am going to explain how to use query methods and custom repository implementation in Spring Data JPA framework. I have used Primfaces and JSF to develop the front end to access data using Spring Data infrastructure. When you’re developing a Spring Data Repository, you’ll have three options: Using of a CRUD operations …
PrimeFaces + Spring Roo + Spring Data JPA Integration Example
This tutorial presents how to develop a web application using PrimeFaces using Spring ROO and Spring Data JPA. In our previous tutorials we have explained each topic with more examples. Spring ROO is the rapid application development tool for the spring applications. It improves the productivity of software development. To Getting started this tutorial, be sure …
Spring Data JPA Tutorial
Persistence API (JPA) provides POJO (Plain Old Java Object) standard and object relational mapping (OR mapping) for data persistence among applications. Persistence, which deals with storing and retrieving of application data, can now be programmed with Java Persistence API starting from EJB 3.0 as a result of JSR 220. This API has borrowed many of …