Posts by Erick Luz • 726 points
22 posts
-
6
votes1
answer822
viewsQ: What is the difference between the orelse() and orElseGet() methods of java.util.Optional?
What is the difference between the methods orElse() and orElseGet(), class java.util.Optional?…
-
5
votes1
answer187
viewsQ: Create more specific or more generic custom exceptions?
Taking into account that in a project is used the practice of creating custom exceptions, which makes more sense? I mean, make an exception for every possible error predicted in the code by…
-
11
votes2
answers4166
viewsQ: What is the difference between the map() and flatMap() functions of Java 8?
What is the difference between the functions map() and flatMap() made available by the API stream java 8?
-
1
votes1
answer136
viewsA: Entity relationship error 1:N using orphanRemoval
Try changing the annotation @ForeignKey(name="pessoa_cpf") for @JoinColumn(name="pessoa_cpf"), and remove the recursive cascade configuration , cascade = javax.persistence.CascadeType.ALL telephone…
-
1
votes1
answer225
viewsA: Inheritance JPA Inheritance.JOINED does not work as it should
All solution was reported in the comments: Pessoa.java @AllArgsConstructor @NoArgsConstructor @Data @Entity @Inheritance(strategy = InheritanceType.JOINED) @Table(name="pessoa") public abstract…
-
8
votes1
answer428
viewsQ: What are the differences between the methods "equals()", "compareTo()", and even "=="?
I am aware that there are differences between comparing objects using equals(), compareTo() and even the operator ==, but in detail what are the differences between them and the care we should take…
-
4
votes2
answers18166
viewsA: Uninstall Mysql from Ubuntu
Try: sudo apt-get remove --purge mysql* sudo apt-get purge mysql* sudo apt-get autoremove sudo apt-get autoclean sudo apt-get remove dbconfig-mysql sudo apt-get dist-upgrade…
-
8
votes2
answers1800
viewsQ: In which table is the foreign key in a ratio 1 to 1?
In an SQL relationship of two tables 1 to 1, there is some rule that defines which table the foreign key will be in?
-
0
votes1
answer226
viewsA: Syntax Error in MAP Angular6
There have been changes in the method map(), version of Angular 4, to 6. I believe that in your case the problem is that there is no more conversion to JSON in the method map(). Try modifying the…
-
1
votes1
answer2689
viewsQ: What is the use of pipe() and map() functions in Angular 6?
I learned that I have to use these two functions when I’m working with HTTP requests, I learned that I have to use these two functions as a cake recipe, which you use and that’s it, I wanted to know…
-
0
votes1
answer64
viewsA: Problem installing boostrap
Try npm install bootstrap which command you used?
-
0
votes3
answers7675
viewsA: Angular 6 - Ngfor only Supports Binding to Iterables such as Arrays
Your problem lies in the asynchronousness of the processes, your code in the . html is running before you can even feed the variable into your .ts. For this problem you need to work with promises or…
-
0
votes1
answer213
viewsQ: Container div height relative to page size?
How to leave the bootstrap div Container height(height) relative to page sizing? <div class="container"> <div class="row"> <div class="col"> its works! </div> </div>…
-
1
votes1
answer524
viewsA: Hibernate is not creating or updating BD tables
In your file hibernate.cfg.xml, check the line: <property name="hbm2ddl.auto">validate</property> Options: validate: validate the schema, make no changes to the database. update: update…
-
0
votes1
answer737
viewsA: Save various data in Laravel
I believe that the best method does not exist, but there are some patterns that we can follow. I will give an example that I follow. Route: Routes/web.php Route::get('/uri',…
-
0
votes2
answers45
viewsA: While is not loading the logs
Try: <?php $qry = "SELECT pe_orclinhas.id_orclinha, pe_orcgrupos.grupo_orcamento, pe_orclinhas.dc, pe_orclinhas.orclinha FROM pe_orcgrupos INNER JOIN pe_orclinhas ON pe_orcgrupos.id_orca =…
-
0
votes1
answer85
viewsA: Query with return JSON
You would have to make an API system (Rest or SOAP), in my opinion in PHP, the best way to do this is using the framework Slim , This is clear for Jsons files.…
-
5
votes1
answer553
viewsQ: How to configure Autoload Composer?
I am facing a lot with this autoload in php, I decided to study about it, I could understand a good part, but I have only one very specific doubt. Inside the archive composer.json, in the stretch:…
-
0
votes1
answer60
views -
0
votes2
answers217
viewsA: Take content from a list of a website and save to the PHP database
There is a technique for what you are wanting to do, it is an interesting subject, the name of the technique is Web scraping, with that name you can find many explanations on the internet of how to…
-
0
votes2
answers78
views -
1
votes0
answers819
viewsQ: Edit button, delete in a list made in HTML?
I know that it is much easier to use framesworks and specific technologies for web development like Angular.JS, ZEND, Java EE, etc. But I am developing a CRUD system using the minimum of…