Top "Spring-data-jpa" questions

Spring Data - JPA is part of the Spring Data umbrella project which makes it easy to implement JPA based repositories

Spring Data JPA: How can Query return Non- Entities Objects or List of Objects?

I am using spring data JPA in my project. I am playing with millions of records. I have a requirement …

java hibernate jakarta-ee jpa-2.0 spring-data-jpa
Spring data query where column is null

Suppose I have entities (getters/setters and various details omitted for brevity): @Entity class Customer{ ... @OneToMany(cascade = CascadeType.ALL, mappedBy = "…

spring spring-data spring-data-jpa
Dynamic spring data jpa repository query with arbitrary AND clauses

I'm using Spring data jpa repositories, Got a requirement to give search feature with different fields. Entering fields before search …

java spring spring-data spring-data-jpa querydsl
Spring Data JPA: Query by Example?

Using Spring Data JPA can I do a query by example where a particular entity instance is used as the …

java spring spring-data spring-data-jpa
JpaRepository Not supported for DML operations [delete query]

I have written a query to delete some objects in my interface extending JPaRepository, but when I execute the query …

java spring hibernate spring-data-jpa hql
Update single field using spring data jpa

I'm using spring-data's repositories - very convenient thing but I faced an issue. I easily can update whole entity but …

java spring spring-data updates spring-data-jpa
Spring boot JPA insert in TABLE with uppercase name with Hibernate

i have a table entity mapped as : @Entity public class ItemsToRegister implements Serializable{ @Id @Column(name = "ID_ITEM_TO_REGISTER") @…

java mysql hibernate jpa spring-data-jpa
Why use returned instance after save() on Spring Data JPA Repository?

Here is the code: @Repository public interface AccountRepository extends JpaRepository<Account, Long> {} JpaRepository from Spring Data JPA project. …

java spring jpa spring-data spring-data-jpa
Spring data JPA and parameters that can be null

My understanding is, that with Spring data JPA I cannot have a query method to fetch all rows where a …

java parameters null spring-data-jpa
Spring Data JPA - "could not initialize proxy - no Session" - With Methods marked as transactional

I have a model that has a pretty large graph of sub entities and hibernate ends up making around 9 statements …

java hibernate spring-boot spring-data-jpa c3p0