Posts by Haruo • 211 points
8 posts
-
0
votes1
answer41
viewsA: How to keep the value of the variable inside the is using promise?
Change the functions "updateSection" and "addSection" so that they receive as parameter the value of i. Doing this you will have access to copy the value of i in the promises used in each function.…
-
0
votes3
answers66
viewsA: How do I create this Button in HTML?
button { background-color: #343A40; } span { background-color: #9A9DA0; width: 20px; display: block; …
-
0
votes1
answer37
viewsA: Filter data that is not between dates
I’m not sure I understand the rules that surround your problem. Supposing: 01) The Bucket Record Table stores the buckets and their respective periods in which they are occupied. 02) The Bucket…
-
0
votes1
answer73
viewsA: ERROR: array required but (class) found
M1 and m2 should be arrays but are objects of type Criamatrizes. I don’t know if there is an Array inside the Create Matrices object, but you should use the matrix referring to each object Create…
-
0
votes2
answers186
viewsA: Error starting Applicationcontext through a Spring application
From what I understand of your problem, Spring is not able to inject an instance of the type Categorialivrodao in the attribute "catDAO" in the class "Categorialivroserviceimpl". Looking at your…
-
0
votes1
answer76
viewsA: Returning only the last value of a table and filling a collection via JPQL
Good afternoon! You could do it this way: @Query( "SELECT NEW br.meupacote.ClienteDTO(c.id, c.nome, com.descricaoItem, com.data) FROM Cliente c LEFT JOIN c.compras com WHERE com.data = (SELECT…
-
1
votes2
answers95
viewsA: How do I set contacts for a Phone object?
As you reported, the error occurs: "incompatible error types: Phone cannot be converted to Phone[];" Explanation of the Error: The Phone type cannot be converted to an array of Phones. The method…
-
7
votes2
answers238
viewsA: Doubt with recursiveness
return n + sum( n - 1): In this line is added the value of n with the value resulting from the method sum(n-1). In the example: sum(8) = 8 + sum(7) sum(7) = 7 + sum(6) sum(6) = 6 + sum(5) sum(5) = 5…