JPA duplicate entries on child when update parent several times

I am building the Rest API with Java, Spring Boot, Hibernate and JPA. I have 2 tables Users and Friends, where User will have an array of Friend. My client will send several update request on my User …

Error accessing field by reflection for persistent property [model.Credentials#email] on @EmbeddedID

I’ve been experiencing problems implementing the Authorities on my spring boot application, and after digging a little I realised that maybe the association between my Credentials and Authorities …

Why does Javers store the ID of my audited entities wrapped in quotes?

I audit changes to a com.example.TaskSupplier entity with Javers by annotating the corresponding Spring Data repository @JaversSpringDataAuditable public interface TaskSupplierRepository extends …

Spring Data JPA – Get all elements

I’m new to Spring Data JPA and I want to ask if there is a method that can be used to fetch all items, not by a certain criterion. Any help would be helpful.

Duplicates in Output Java Spring Boot JPA

I’m working on an application with following Entities and code: @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) public class Clip { @Id @GeneratedValue(strategy = GenerationType.AUTO) …

Spring boot Build issue

**Custom configuration for mail sender ** @Configuration public class EmailConfig { private EmailProperties emailProp; @Autowired ConstantRepository …

How to get Page as result in Querydsl query with fetch or fetchResults properly?

Hi what i trying to achieve here is, i want to submit Pageable data into QueryDsl query and get the result as Page, how can i do it properly? here is what i do until now : here is my controller : @…

Join tables in spring data jpa

I have an issue in joining two tables column. I have two entities Status Report and Employee. and I want the data of employee inside StatusReport. package com.sl.ems.models; import javax.persistence.*…

How to Avoid nested for Loops in java to get the heirarchical data?

// This method will return the list of reference names, in this method I wrote the code using nested //for-loops this handle only 3 subfolders set what if there is one more subfolder and how to handle …

I have an error but dependencies include in gradle root and gradle module config, why?

I have root config gradle.build plugins { id ‘org.springframework.boot’ version ‘2.3.5.RELEASE’ id ‘io.spring.dependency-management’ version ‘1.0.10.RELEASE’ id ‘java’ …