Posts by Arthur Santos • 17 points
5 posts
-
0
votes2
answers423
viewsQ: How to make a [GET] request with custom headers in Angular 10?
I need to make a call to my Angular 10 microservice, passing some information in the Request Header. However, doing so returns the following error: Error triggered in console while calling service…
-
-3
votes2
answers179
viewsA: What better way to check if an object is empty?
For this case, it can be checked in the same way as an attribute null. if(obj.length == null){ ...código } Or using the method: hasOwnProperty('Attribute'), where returns a boolean stating whether…
javascriptanswered Arthur Santos 17 -
0
votes1
answer735
viewsQ: How to map a table without ID, using Hibernate annnotaions?
Hello, good morning, sir. Having a table that relates USER and ACHIEVEMENTS called USER_ACHIEVEMENTS, where it does not have ID, only USER_ID and ACHIEVEMENTS_ID, ie a manyToMany relationship. How…
-
1
votes0
answers121
viewsQ: How to create a Generic method that takes any entity class, and starts a session in Hibernate?
Good night, I am trying to create a method that receives any entity class and an ID to start a session on Hibernate. The idea is to make a Generic DAO to take only the ID of the entities I want.…
-
0
votes1
answer41
viewsQ: Insert using Many to Many Annotation does not work
Hello, I have a Many to Many relationship between TEAM and NEWS. I am trying to create a method to insert a "NEWS". I am using Hibernate with Annotation to map the classes. The Insert works and…