All Questions
Tagged with jpa spring-boot
7,480
questions
0
votes
0
answers
6
views
Title: Improving Performance for Netting and Settlement Cron Job in Spring JPA
I am working on a netting and settlement process in the banking and finance sector. Specifically, I need to run a cron job every 4 hours and 15 minutes to retrieve data from the transaction table for ...
0
votes
0
answers
8
views
Nested Interface Projections in Spring Data JPA
I am working on a spring boot based application where I want to utilize interface based projection as I want to select partial column from my mysql database.
I have a CourseEntity.java class with a ...
-1
votes
0
answers
11
views
Row updated in another transaction error unless there is a breakpoint on the save method
I have 2 methods that update an entity and have similar functionality, but I have inherited the codebase with little testing so don’t want to do a refactor yet.
However, there is a bug in one of these ...
0
votes
0
answers
31
views
Issuse with relationship mapping MapKeyEnumerated with an Entity List as values
I have this Entity
@Entity
public class MealPlanADay {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@JsonIgnore
private Long id;
//@OneToMany(cascade = CascadeType.ALL,...
0
votes
1
answer
26
views
Can i customize result of @ManyToMany of entity?
Here is 2 entity obj:
import jakarta.persistence.*;
import lombok.*;
import java.util.Set;
@Entity
@Table(name = "category"
, uniqueConstraints = {
@UniqueConstraint(...
0
votes
0
answers
15
views
Handling Date comparisons in MYSQL 8 and Spring boot without Milliseconds
We are upgrading our project from Mysql 5 to Mysql 8. there is weird issue coming in db queries in date handling.
On MySQL 5, while saving data to db, the date used to be saved with 'yyyy-MM-dd HH:mm:...
-1
votes
0
answers
18
views
How do i switch between different schemas in spring jpa and hibernate dynamically
i have a multi tenancy application written with spring boot, keycloak, flyway and postgres, i have been finding it difficult to switch from one schema to another, note i have done a lot of research ...
-1
votes
0
answers
16
views
spring boot data jpa batch insert performance issue - improvement suggestion
I am facing an issue while inserting 1,00,000 records at once using spring data JPA repository. When we execute repository save-all method with list of objects, it is taking a lot of time if we use ...
-1
votes
0
answers
35
views
Hibernate + Spring Boot: Handling "More than one row with the given identifier was found" Exception
I'm working on a Spring Boot application with Hibernate and encountering an issue where Hibernate throws "More than one row with the given identifier was found" exception. I'm using custom ...
0
votes
1
answer
24
views
Entity Inheritance and query filtering
I'm trying to achieve a very basic from SQL point of view operation but using Spring Boot and JPA
This is my Java data model:
@MappedSuperclass
public abstract class BaseEntity {
@Id
@...
1
vote
1
answer
50
views
Issue with @ManyToOne Lazy Loading: Unable to Find Entity by ID
Edit
I added an attribute that can be the problem, it had the same column name in the yEntity and the xEntity, but he is not part of the relationship (the Integer yEntity in yEntity who is a reference ...
0
votes
0
answers
20
views
[spring-boot]open api can't be stored in mysql database
bonjour,
I have a unsolvable problem ... help me
I downloaded XML open api file and parsed that in spring boot.
Even though mysql db was successfully connected, data wasn't stored in my db table.
Only ...
0
votes
1
answer
25
views
Spring JPA JoinTable
I have three entities. I want to save a survey. The survey will contain all the data that is neccessary:id,section, questions.
The survey_section_question table is created successfully and when I want ...
1
vote
0
answers
13
views
Consider defining a bean named 'entityManagerFactory' in your configuration, required a bean named 'entityManagerFactory' that could not be found
I'm getting the below error when I try to run a Spring Boot web application. This is a web application which having thymeleaf and JPA.
Description:
Field checkListRepository in com.example.demo....
2
votes
3
answers
92
views
one-to-many: JPA generates wrong FK while using ddl-auto=create-drop
It seems that I made a mistake somewhere but I can not see where.
JPA insists on generating a unique constraint on a FK of one-to-many relationship on the child side. This constraint prevents me from ...