Posts by Dherik • 10,372 points
299 posts
-
0
votes1
answer999
viewsA: 'mysqldump.exe' not found in Dbeaver when exporting Mysql database
Dbeaver does not have the utility mysqldump.exe available. It depends on an installation of a local Mysql client (or Mariadb) on your operating system to gain access to this tool. After installing…
-
1
votes2
answers163
viewsA: How to pass numbers between "{ }" in the url?
I found nothing in the Spring documentation that supports this format using keys (or brackets): lista={12,55,70,22} However, Spring accepts: lista=12,55,70,22 Or:…
-
0
votes1
answer153
viewsA: Git connection to the Jenkins server on Azure: Host key Verification failed
In your scenario you have Jenkins trying to make a git-ls on some Git server (which you have placed xxxxxx to hide which in your question). Probably this mistake: stderr: Host key verification…
-
1
votes1
answer34
viewsA: Named query not known - Hibernate + JSF
Apparently it has a redundancy in its configuration. You have two files xml configuring the Hibernate: Hibernate.cfg.xml persistence.xml Only in cases very specific you would use both, referencing…
-
4
votes2
answers740
viewsA: How do I perform a "merge commit" or "merge pull request" on "Github"?
There are different forms to do this. There’s no way to do this directly on Github, you’ll need to do it locally and then go up to Github for changes. My favorite is to use the command rebase for…
-
11
votes4
answers1037
viewsA: What is reverse proxy?
To explain what a Reverse Proxy is, I think it is important to also explain how it differs from Proxy. The Reverse Proxy (Reverse Proxy) is a proxy that we can say acts on the server side, different…
terminologyanswered Dherik 10,372 -
0
votes1
answer341
viewsA: Infinite looping in bidirectional relationship - Manytomany
You can jot down the relationship of their entities with @JsonManagedReference and @JsonBackReference: @JsonManagedReference is placed in the part of the reference that wants to advance in…
-
1
votes2
answers240
viewsA: Github large files get corrupted
Github has a limitation that does not allow files over 100 MB to be versioned into its repositories. The only way Github officially indicates to Versionar files with more than 100 MB is using the…
-
0
votes2
answers727
viewsA: "OMG! A heisenbug!" - Explaining to a layman what a heisenbug is
As it is an explanation for laypeople, we have to be as generic as possible and try to explain the problem adapting the communication according to the interlocutor. This is a huge challenge in our…
-
1
votes1
answer192
viewsA: What is 'Binding time' in the context of development?
To understand what it is Binding time, we can start with what it means Binding. The term Binding in this context is the act of making a association, is an attribute, symbol, entity or transaction.…
terminologyanswered Dherik 10,372 -
3
votes1
answer1275
viewsA: Error 403 github
Commit username and password have no relation to the authentication part on Github. Windows is probably trying to use its old credentials. You can confirm this with the command: git config…
-
5
votes3
answers296
viewsA: What are God Objects?
The God Object (or Object God) is a portion of code (which can be a class or other item) that knows a lot or does a lot. In the worst cases, he knows and does a lot. It can also be known by the term…
-
1
votes2
answers140
viewsA: How do I access getters and sub-class setters?
Unfortunately, according to your modeling, this is not possible without using a cast class Motor for MotorEletrico: Motor motor = arrayteste[0].getMotor(); MotorEletrico motorEletrico =…
-
2
votes4
answers4453
viewsA: What are the practical advantages of using object orientation in the day-to-day life of a development team?
This could be a further question for the Workplace than technical. Whenever it involves convincing management we may come across several barriers that go beyond the code or system itself. Imagining…
-
2
votes2
answers6518
viewsA: How to Configure Maven/Java Environment Variables
You didn’t detail exactly as he did, to understand where his mistake might have been. But process, in Windows, can be this below. Once with Maven downloaded and uncompressed in some directory: Press…
-
1
votes2
answers4637
viewsA: What is the difference between "node", "attribute", "element" and "tag" in XML?
Each of the following fragments code-driven: <alunos>, <aluno>, <nome>, ... Are called tag. When we have them "complete", with a start tag and a tag of their end:…
-
7
votes5
answers527
viewsA: What is programming logic and computational thinking?
The term Computational Thinking is the process of understanding how to solve a problem. To resolution of this problem can be by computer or human being, being this a stage optional within…
computer-scienceanswered Dherik 10,372 -
1
votes2
answers1305
viewsA: How to store product lists of an order in a database table?
When we are working with a relational bank we seek to establish a relationship between tables when it makes sense. As is your case. In your case, you need to establish a relationship between orders…
-
2
votes1
answer277
viewsA: How to remove single container created with Docker-Compose
You can use the command stop followed by rm for this. First, stop the service with the stop: docker-compose stop nomeDoServico Then remove the stopped service with the rm: docker-compose rm…
docker-composeanswered Dherik 10,372 -
6
votes3
answers11154
views -
2
votes2
answers235
viewsA: Code of some branchs disappeared after merge
Analyzing specific merge problems are complicated without understanding exactly what commands were given, what order were carried out, if there was a conflict, if anyone is allowed to do so force…
-
0
votes1
answer170
viewsA: How to customize the authentication failure error to return a message in Body from the reply?
The most "Spring" way to do this is to use a @RestControllerAdvice to intercept errors and change the error response to the format you want. In the case of Spring, when it returns error 401, it will…
-
2
votes1
answer284
viewsQ: What is the TOGAF?
I came across this term TOGAF (The Open Group Architecture Framework) today in a vacancy related to hiring a "systems architect" in a large company. I had never heard anyone mention this term until…
-
4
votes2
answers253
viewsA: Why is it good practice to generate unique user code?
I believe the main reason is this: security guard. And we can mention two points about security: preventing a vulnerability from being exploited more easily and the security of information itself.…
-
1
votes1
answer448
viewsA: How to filter selected fields through Spring JPA using JPQL?
You can try doing by explicitly explaining the Join: SELECT ph FROM Person p JOIN p.phones ph And the expected return is the same as the entity mapping: Set<PhoneEntity> The final code would…
-
2
votes4
answers140
viewsA: "Enum" should be used to indicate business rule options?
The Tipos Enum are not meant to be dynamically added/changed/removed. Quote documentation of Java itself: You should use Enum types any time you need to represent a Fixed set of constants In other…
-
0
votes1
answer57
viewsA: Trunc Hibernate
You can add equal conditions for start date and end date: and ( (trunc(da.dtAgenda) between :dtInicial and :dtFinal) OR trunc(da.dtAgenda) = :dtInicial OR trunc(da.dtAgenda) = :dtFinal )…
-
0
votes2
answers475
viewsA: Try/Catch: java.lang.Outofmemoryerror: Java heap space
found that the java.lang.Outofmemoryerror: Java heap space error may be being caused by Try/catch with catch with nothing in the code, similar to the following: Surely the cause of the error…
-
15
votes3
answers154272
viewsA: What is REST and Restful?
The term REST means Representational STate Transfer. It is nothing more than an architecture standard to create services and make them available on the Web. A service Restful is simply the one who…
-
2
votes2
answers2960
viewsA: Error log in Java application
The log configuration part in Java has a history that may seem a bit confusing at first. The log option that comes by default with Java is in the package java.util.logging. You can just use it…
-
17
votes2
answers1150
viewsA: What is a microfrontend?
The Micro Frontends is a technique that has emerged to deal with the complexity of large frontend projects, where in the same system we can merge different front-end technologies (Angular,…
terminologyanswered Dherik 10,372 -
0
votes2
answers11475
viewsA: What is the git diff command for?
Basically, the command is git diff serves to show differences between files. As an example, see an output of this command, showing the changes in the arquivo: diff --git a/arquivo b/arquivo index…
-
3
votes2
answers4841
viewsA: How does the merge work?
Just the branch in which you are is affected. In this case, only the branch daniela3. This is because the branch origin/develop is the source branch. If you view Git branches as graphs, it’s easy to…
-
8
votes2
answers29427
viewsA: Git warning: LF will be replaced by CRLF
Come on. What does LF and CRLF mean? LF means Line Feed and CRLF means Carriage Return Line Feed. Both are different line breaking forms in the files. LF is adopted by Linux/Unix based systems and…
-
3
votes2
answers256
viewsA: What is the relationship between software architecture and Patterns design?
Software architecture is a very ambiguous term. Probably if you go to the most senior person on any team and ask "What is the architecture of your software?" she will answer you with another…
-
1
votes1
answer190
viewsA: Hibernate can’t find an existing column, ERRORCODE=-4460
There are some Hibernate version combinations with the DB2 connection driver version that may generate this error. The explanation is that older versions of Hibernate (3.x) read the table metadata…
-
0
votes1
answer266
viewsA: Spring Error with JPQL: Unsatisfieddependencyexception
This mistake: Validation failed for query for method Are you saying that your query is with incorrect syntax. The point where there is an error in your query is in the lack of space between ?1 and…
-
2
votes1
answer430
viewsA: Unit tests on a CSV file upload
First, you need to read the CSV file from the unit test. A good practice is to leave these test files in the test Resources directory: /src/test/resources/ Even better to create your own directory…
-
1
votes1
answer140
viewsA: Transactions between queue and database
Ricardo Pontual is correct. The use of @Transactional can solve your problem. As the subject is very extensive and complex (and I have no experience with this use of transaction), I recommend…
-
2
votes3
answers1706
viewsA: Hibernate and JPA are the same thing?
They are not. This is a very common doubt, which I even had in my first years of development with Hibernate. JPA means Java Persistence API. Is a specification of a "Java API for persistence…
-
1
votes1
answer142
viewsA: Psqlexception: ERROR: target lists can have a maximum of 1664 entries
This error occurs because you are returning many columns at the same time and hitting the Postgresql limit itself. This case is quite typical using Hibernate when we have an entity mapping abusing…
-
0
votes1
answer438
viewsA: How to check if an Integer type parameter received in Spring is empty?
I think there’s even a better way to do this, but it’s a solution: I think it’s possible for you to take the object HttpServletRequest and call the method getParameterMap(), and check if the…
-
0
votes2
answers71
viewsA: What is the meaning of the two points on that line?
This line: foo() : myValue1(0xDEADBEEF), myValue2(0xBABABABA) {} It means that the values myValue1 and myValue2 are being initiated with the values 0xDEADBEEF and 0xBABABABA, respectively. This…
-
1
votes1
answer1280
viewsA: How to compile in Visual Studio Code
The warning is asking you to put the compiler path you are using in your operating system’s PATH. If using Windows, this location would be the "environment variables": Under Search, search and…
-
4
votes3
answers702
viewsA: Is there any way to make Git ignore space-related modifications or line breaks?
I mean, I want GIT to disregard modifications like these when listing files for the commit with git status. I understand that you would like this behavior after doing some kind of merge with a…
-
0
votes1
answer427
viewsA: Access path space environment variables
I don’t think it’s possible, the way bash works. If you have in the variable $my_var the directory /c/Users/Bruno Xavier, execution of the following command without quotation marks: cd $my_var It…
-
3
votes1
answer1628
viewsA: How to copy SOME files from one branch to the other?
Being in branch B1: git checkout b1 You can use the following command to get the newest version of the B2 branch file: git checkout b2 arquivo_mais_evoluido_1.txt If there are multiple files, you…
-
0
votes1
answer271
views -
0
votes2
answers1652
views -
6
votes3
answers150
viewsQ: Json format is valid, but conceptually incorrect. How to argue?
We recently requested a service for a partner company, to consult with some people. The service was designed from scratch to meet a particular system demand of ours. This is a simple Rest service,…