Relative Content

Tag Archive for javaspring-boot

spring Boot problem, In the database, when the data is entered, why is it not saved to the linked table , why is the foreign key null?

package com.example.project2.entity; import jakarta.persistence.*; import lombok.*; @Entity @AllArgsConstructor @NoArgsConstructor @Data @Table(name = “LoginUser”) public class LoginUser { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int loginID; private String loginEmail; private int loginContactNumber; private String loginPassword; @OneToOne(cascade = CascadeType.ALL) @JoinColumn(name = “fk_reUserID”, referencedColumnName = “reUserID”) private RegisteredUser registeredUser; } package com.example.project2.entity; import jakarta.persistence.*; import lombok.*; @Entity @AllArgsConstructor @NoArgsConstructor […]

spring Boot problem, In the database, when the data is entered, why is it not saved to the linked table , why is the foreign key null?

package com.example.project2.entity; import jakarta.persistence.*; import lombok.*; @Entity @AllArgsConstructor @NoArgsConstructor @Data @Table(name = “LoginUser”) public class LoginUser { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int loginID; private String loginEmail; private int loginContactNumber; private String loginPassword; @OneToOne(cascade = CascadeType.ALL) @JoinColumn(name = “fk_reUserID”, referencedColumnName = “reUserID”) private RegisteredUser registeredUser; } package com.example.project2.entity; import jakarta.persistence.*; import lombok.*; @Entity @AllArgsConstructor @NoArgsConstructor […]

Key Overlap Issue

I am using the same key for calculations in two different classes within a Spring Boot application. Although I have specified distinct paths for each class, when utilizing the key from Class A, I am unexpectedly retrieving the value associated with Class B’s key.

Domain folder and target class not showing but application is running smoothly

I have a problem with Java Spring Boot application finding a file let’s call it appservice. The application works and is running smoothly however I am having trouble finding a certain class file, particularly, com.app.appservice.domain.appSegments.
I can see other classes under the parent repository such as com.app.appservice.service.transformapp.zoms.Utilities. but not classes that has com.app.appservice.domain.
I also check and there is no domain folder.
I need to edit this class since I have issues setting a new field instantiated in this class.