Posts by Eduardo dos S Barbieri • 188 points
8 posts
-
1
votes1
answer29
viewsA: code Smell - select max(numeroProntuario)+1, but how to fix it?
Hello, Validates this solution: Change the column to auto_increment and set its current value: ALTER TABLE Paciente MODIFY COLUMN numeroProntuario INT auto_increment; ALTER TABLE Paciente…
-
3
votes1
answer121
viewsA: What is the difference between function statements (React)?
Hello, The problem is related to the scope of this, when click event is triggered this represents the button and not the Test component. As can be seen in…
-
0
votes1
answer52
viewsA: Use received variable via angular route 2 final releasee
Hello, The problem is related to http calling being asynchronous, and when chunk : this.aaa = this.usuario['nome']; is executed, has not yet returned from server. For the correct functioning Voce…
angularanswered Eduardo dos S Barbieri 188 -
5
votes2
answers40
viewsA: How to change the value of fields in a column?
You can use CASE in the select: select a.x, NULL as y, CASE a.z WHEN NULL THEN 'Vazio' ELSE a.z END as c from DADOS a…
-
1
votes1
answer3473
viewsA: Error creating table with flyway using Maven
I believe that your problem is in the creation script of the table V01__cria_tabela_vinho.sql, which is not compatible with Postgres, tries to change the script to: CREATE TABLE vinho ( codigo…
-
0
votes1
answer181
viewsA: How to catch multiple JSON Arrays on a JSON Array with Rest Template?
Hello, I don’t know if I understood your doubt, but to perform the mapping of this json, just create something like the following example: class Request{ private DataSet dataSet; } class Dataset{…
-
2
votes1
answer127
viewsA: Otherwise with redirectTo to another url that is not part of the Single page application
Hello, You’ll have to create a controller, either by javascript redirect to the external url, something like that: .otherwise({ controller : function(){…
-
2
votes1
answer274
viewsQ: Update column with sort items
Hello, In a given relationship table I have a column that stores the ordering, but due to a problem in the application this column was populated wrong data, as the example |user_log…