Spring Boot JPA Query Examples. Using JPA methods and JPA Query Part4 Session 26

Опубликовано: 24 Апрель 2026
на канале: ITGARDEN
93
3

Click the below link to download the latest Billing System Source code.
https://pinepad.in/downloads/
More information about the Billing System Project. Watch this video
   • Billing System using Spring Boot - Billing...  

This video explains how to handle JPA queries. JPA query is a hibernate query we are querying against on Object. This is a very powerful query. The reason we are using JPA query is we don't have to change query related code if you change any database in your Project. i.e. without any changes, we can migrate one database to another database because we are not writing native query we are writing queries against the Java Object so we don't have to worry about changing DB in your Project. Following JPA query I am explaining in the video.
This method returns the record those are not deleted state.
List findByDeletedFalse();
In this method, I am using the Like operator. I am fetching a record that matches with whatever string I am passing in the method parameter.
List findByEmailLike(String email);
In the following method, I am using the Like and AND operators.
List findByEmailLikeAndDeletedFalse(String email);
Following the method, I am using IN operator to fetch the data.
List findByStateIn(List stateList);
In the following method, I am using JPA query using @Query annotation
@Query("select address from Address address where address.state in :stateList")
List findByStateList(@Param("stateList") List stateList);
For more clarify please watch the full video. It has a complete demo.

Previous video link:
   • Many to Many relation  Spring Boot JPA usi...  

Download the source code from the following GitHub
https://github.com/sureshstalin/itgar...

I am developing a Billing System using Spring Boot. Already there are many many topics I have posted related to Billing System Project. Please subscribe to this channel to get all new updates about the Billing System and the first version of the Billing System Java code is absolutely free. It is available to download from here https://pinepad.in/downloads/ In the First version of the Billing System, I have implemented all kinds of Technical topics. Technical topics nothing but, integrating Spring boot logging framework, Spring Boot validation framework, and many more. Please follow the Billing System which I developing, it is very useful who wanted to get real-time project experience in Spring Boot. you can easily crack the interviews. Even I am ready to explain the technical topics if you have any doubts about the Project. You can find my contact. You can find my contact @ www.pinepad.in. Also, I have given my LinkedIn, Instagram, and FB profile in my Channel homepage banner (   / @itgarden9753  )

I have posted all technical related topics on the following site. Please check it out
https://pinepad.in/blog/

If you want to only Billing-System-related Technical Topics, please go to the following link.
https://pinepad.in/category/java/bill...

Please follow me on   / suresh-stalin  . The reason I am asking is, if I post any Technical article or billing System-related Article you will be getting a notification.

Click the below link to download the latest Billing System code.
https://pinepad.in/downloads/

All Billing System-related videos update in the following post
https://pinepad.in/java/billing-syste...
#springbootrespository #springdatajpacrudexample #springboothibernate #springbootjparepository #springbootjpa