Posts by Jean Merelis • 26 points
3 posts
-
0
votes2
answers70
viewsA: How to wait for return to continue running the app? - Flutter
You can use Future’s methods. then will be invoked when Future is solved. It’s good to use catchError also to handle possible request errors. ElevatedButton( onPressed: () { retornaDescricao()…
-
0
votes2
answers35
viewsA: Problems running the DDL on a Rest Api via JPA
Identifiers in the database cannot contain invalid characters, as in this case '-', i.e., the name of your "TB-PRODUCT" table is invalid. The correct name should be "TB_PRODUTO".
-
1
votes2
answers36
viewsA: I cannot show an exception when I set a value that my foreign key does not exist in JSON when I will persist
Good night. The problem is that you are calling the Optional get without testing if it is empty. You can do it this way: @Service public class LancamentoService { @Autowired private PessoaRepository…