1:n disable constraints for the n-side?

Tags: , , ,


The Problem I have a 1:n relation, but the n side shouldnt rely on constraints. So i actually wanna insert a EntityPojo via its future id, when its not saved yet ( Lets ignore that its a bad practice )…

How do I check if a field in another activity was filled? [closed]

Tags: , , ,


Each user has its profile that is stored in a XML file linked to a Java class. But not necessarily they access this profile when they use the App, because they may just use the app without editing its …

Tags: interface java

How can I make classes implement an interface and print their methods based on a given parameter in Java?

Tags: ,


I think this might be a very basic Java question, and I apologize since I’m a beginner, but I want to understand what am I getting wrong here: I’m supposed to create a package, and inside it, I must …

How do I compare the values in ‘Mono’?

Tags: , ,


Comparing the values in Mono a and Mono b, if the value in Mono a is larger, I want to throw an error. Mono a = getA(); Mono …

Tags: generics java

How to use one type in method?

Tags: ,


I have two forms, one form to create user and one to update user.These forms are similiar and I want to use one type in my method,I wouldn’t like to create two methods one to create user from …

Tags: java

Display the highest score from an arrayList from a txt file

Tags:


I’ve been trying to display the highest score from the URL file and have been able to display the entire score list but I cant get it to display the maximum or it throws an error. I was able to …

How to create hibernate request with localdate

Tags: , , ,


I have a user who has an expiration date (dateTime), I need to display all users who have not expired yet. Tried different options with DATA (), or as an example – @Query (name = “SELECT u FROM …

Map List to Map with additional transformation

Tags: ,


I need to convert a list of objects to a map of sets of one of the objects’ property and I’d like to use Java streams for that. For example there is a List and I’d like to convert it to a …

Change SuperBuilder method with Lombok

Tags: , ,


I have a class as follows: @Data @SuperBuilder @NoArgsConstructor @JsonInclude(Include.NON_NULL) public class CustomObject extends Parent { … @Accessors( chain = true,…

Javers – comparison String, Collection and Boolean with defined rules

Tags: , , , ,


I have 2 classes: @Data @Builder public class Boss { private String name; private List subordinates; } @Data @Builder public class Employee { private String …