spring-data-jpa Questions
2
Solved
I'm trying to enable LoadTimeWeaving in spring boot project.
What I've done so far:
Added @EnableLoadTimeWeaving annotation
Added vm options when running the application (-javaagent:path/to/spring...
Booted asked 11/6 at 8:33
2
Solved
What is different between Query keywords Containing, IsContaining, Contains in Spring Data ?
List<Movie> findByTitleContaining(String title);
List<Movie> findByTitleContains(String titl...
Friedafriedberg asked 13/11, 2020 at 3:14
5
I want to sort my entities by the name attribute with ascending direction and ignoring the case.
I've created an EntityRepository extending the Repository interface of Spring Data. Then I've decla...
Semi asked 27/3, 2017 at 10:24
5
We can select specific columns by writing custom @Query methods in our Repository Interface. However, I don't want to write so many methods for different properties.
I tried this, but it returns t...
Stablish asked 4/3, 2014 at 12:19
3
Solved
After moving the spring boot project from 2.0 to 3.0 and upgrading to java 17, hibernate-jpamodelgen doesn't generate a metamodel classes.
I added this dependency, but it still doesn't work. Could ...
Standridge asked 17/5, 2023 at 22:0
3
Solved
I've recently started to learn spring boot, data jpa. As I can see from this, the spring boot data jpa starter uses jakarta.persistence-api instead of javax.persistence-api:
<artifactId>spr...
Cheka asked 1/2, 2020 at 23:0
9
Is there a way for updating only some fields of an entity object using the method save from Spring Data JPA?
For example I have a JPA entity like this:
@Entity
public class User {
@Id
private ...
Nanci asked 7/1, 2015 at 11:21
5
Solved
My spring-data-jpa backend has a class that populates the (test) database with a lot of test data. The class usese the spring data repositories to create entities. All my entities have a field anno...
Coexecutor asked 21/2, 2017 at 17:47
8
Entity looks like this:
@Getter
@Setter
@Entity
public class Application {
@Id
private Long id;
@Enumerated(EnumType.STRING)
private ApplicationStatus status;
}
Code works this way:
public inte...
Trawick asked 9/6, 2017 at 14:28
5
Solved
The methods come with JpaSpecificationExecutor are inadequate, none of them give me what I want:
Page<T> findAll(Specification<T> spec, Pageable pageable)
List<T> findAll(Specif...
Thesis asked 4/11, 2014 at 14:53
6
Solved
I'm working on a migration software that will consume unknown data from REST services.
I already think about use MongoDB but I decide to not use it and use PostgreSQL.
After read this I'm trying ...
Carafe asked 11/7, 2018 at 3:13
9
Solved
I have successfully developed a prototype using Spring Boot 1.0.2.RELEASE (was 1.0.1.RELEASE until today).
I have searched and searched and tried solutions like:
Spring Boot jdbc datasource autoco...
Swirly asked 25/4, 2014 at 8:2
3
Solved
I'm studying Transaction Routing in Spring, but my application has a runtime problem.
I have two MySQL databases, one for reading and one for reading/write, but my routing configuration is not work...
Hopefully asked 17/6, 2021 at 3:24
3
How to create unpaged but sorted Pageable.of(unpaged, unpaged, Sort ) to spring data jpa repository?
How do I pass a Pageable object to Spring JPA Repository with only Sorting information?
I want something like this:
Pageable pageable = PageRequest.of(null, null, Sort());
I know it takes int ...
Hassler asked 8/11, 2019 at 7:57
1
how to do static weaving if we use eclipselink jpa in the spring boot app. There is a lack of enough articles on it in internet. The articles I saw used de.empulse.eclipselink
staticweave-maven-plu...
Refection asked 22/4 at 7:20
6
Solved
My Spring Boot Project trying connect to MYSQL database with driver mysql-connector-java.
I have import newest mysql driver and spring-boot-starter-data-jpa
<dependency>
<groupId>org.s...
Mike asked 28/12, 2021 at 7:44
18
I am developing a Spring Boot application using JPA and encountering this error. I am not certain if I am using the correct annotations or missing dependencies. Any help would be greatly appreciate...
Diazotize asked 24/1, 2018 at 7:23
5
Solved
I am trying to get table data as list using select query between dateFrom and current date using MySQL Native Query in Spring Boot. and MySQL database field datatype is String.
Below is Query in Re...
Schroer asked 14/10, 2020 at 13:32
4
Solved
I have an application which is using Spring data JPA and hibernate envers for db auditing.
Since R2DBC doesn't support auditing yet, is it possible to use combination of both in a single applicati...
Debauched asked 8/6, 2020 at 0:21
3
Just upgraded from Spring Boot 3.1.5 to 3.2.0 and started having Cannot compare left expression of type 'com.acme.domain.AbstractEntity' with right expression of type 'com.acme.domain.User' in seve...
Eloign asked 12/12, 2023 at 18:27
5
Solved
I have a very complicated model. Entity has a lot relationship and so on.
I try to use Spring Data JPA and I prepared a repository.
but when I invoke a method findAll() with specification for the o...
Uncomfortable asked 19/5, 2015 at 17:0
1
I have this class:
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "SECURITY_AUTHORITIES")
public class SecurityAuthority implements GrantedAuthority {
@Serial
private sta...
Existential asked 30/3 at 6:39
2
Solved
I am trying to define a common query for all repositories extending my base repository:
@NoRepositoryBean
public interface DocumentRepository<T extends BaseDocument> extends JpaRepository<...
Droopy asked 7/12, 2021 at 12:34
9
Solved
I'm using project Lombok together with Spring Data JPA.
Is there any way to connect Lombok @Builder with JPA default constructor?
Code:
@Entity
@Builder
class Person {
@Id
@GeneratedValue(stra...
Isoleucine asked 12/12, 2015 at 15:44
6
I've these two simple entities Something and Property.
The Something entity has a many-to-one relationship to Property, so when I create a new Something row, I assign an existing Property.
Somethin...
Ia asked 3/8, 2017 at 18:4
© 2022 - 2024 — McMap. All rights reserved.