circle
JCHJava Community | Help. Code. Learn.
•Created by Roasty on 11/18/2024 in #java-help
Math in Java. What a struggle. Help. Please. Fast.
You can definitely use package
java.util.Math
it provides many math methods, for example if you want to do power of numbers, you can use Math.pow(a, b)
where b is the power8 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
Thank you so much!
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
Thanks, I was planning to do so
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
Yeah and his front end, I also saw the network response. It's right, I'lll have to check with them
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
Hah okay
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
Not sure when to use LAZY and EAGER yet, but as far as I know EAGER mean the beans will be loaded together (product -- variant loaded together)? And then what would be the implication of using LAZY on both entities?
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
You are right, I even removed the overridden toString and it still works perfectly fine. Problem has probably resolved without my knowledge after switching to DTOs
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
Though I will admit, it didn't work that well. The problem disappears when I do:
Basically overriding the representation
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
Jumped between course episodes 😂 but I will review it again
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
I'm not sure what people usually do when declaring those relationships
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
@JsonBackReference and @JsonManagedReference helped me at the ealy stage of development, for some reason I had circular backreference in the JSON and it causes stack overflow
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
oh i never knew you can see the stuff there
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
let me check in postman
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
It's really weird, I wouldn't just say it only happens in swagger, but the report came from the front end divison that uses my api 😂
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
Help is
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
Any help is much appreciated ^-^
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
49 replies
JCHJava Community | Help. Code. Learn.
•Created by circle on 11/16/2024 in #java-help
ResponseEntity incorrectly maps values
This is the generated mapper by Mapstruct. But as far as I understand my own code, the problem should not be during the logical process I wrote, it's not on the response pre-flight, but is on the flight/post-flight
49 replies