Posts by Brendon Iwata • 323 points
21 posts
-
1
votes1
answer93
viewsQ: Okhttp on Android connects to my websocket server but does not reflect outgoing messages
Following this documentation https://spring.io/guides/gs/messaging-stomp-websocket/ created a small spring project capable of sending messages in real time using websockets, the web part stays this…
-
1
votes2
answers58
viewsA: Javascript function being called too early
I just realized that you are using Angular, and I don’t know anything about Angular or the language you are using to upload the data, but I will try to help you by giving an example with Jsvanilla…
-
0
votes1
answer94
viewsA: SELECT command in MYSQL is duplicating a result (which is not duplicated in the database)
Try it this way: SELECT distinct movimentacao.ID, movimentacao.DATA, movimentacao.COD, CADASTRO_MP.DESCRICAO, CADASTRO_MP.GRUPO, CADASTRO_MP.SUBGRUPO, movimentacao.QUANTIDADE, cadastro_mp.UNIDADE,…
mysqlanswered Brendon Iwata 323 -
0
votes0
answers163
viewsQ: Query JPA using Paging is taking longer as the page number increases, and generating timeout
I’m running a query with JPA on a cloud server of the google app engine, this query should bring me millions of records, and so I’m using Pageable on it, to avoid bank timeout, the problem is that…
-
2
votes1
answer120
viewsQ: Heritage is slowing the startup of my SPRING BOOT application
I’m working on an automatic text messaging system, in my class hierarchy I have an abstract class at the top called TaskNFSBusiness which sets the rules for messages that are not in real time, it is…
-
0
votes2
answers63
viewsA: How to detect when the user tries to access a URL without having a ROLE for that URL in Spring Security
I managed to solve my problem in a very simple way, even in the method configProducao() I put only one exceptionHandling as you can see below:…
-
0
votes2
answers63
viewsQ: How to detect when the user tries to access a URL without having a ROLE for that URL in Spring Security
In my system the ROLES of the screen urls are dynamically loaded from the database through a ObjectPOstProcessor as you can see below: public void configProducao(HttpSecurity http) throws Exception…
-
0
votes1
answer205
viewsQ: Query sql to search for and a string equal to but larger than the one stored in the table
I have a table that stores screen urls from my system, I wanted to perform a query that returns me a url that comes parameterized as follows /avaliacoes-cozinha-segura/avalia-cozinha/2 to that url…
-
0
votes1
answer914
viewsQ: How to rollback the database using Spring Framework
I have this method that saves data in 3 different tables, /** * * @param user - de onde os dados do usuário serão retirados para gravar no banco * @throws GoogleAuthException - se houver algum erro…
-
6
votes2
answers1019
viewsQ: select bringing all un-duplicated records based on a single column
How can I bring all records from a column that are not repeated. For example: | tela | url | perfil | dataCriacao | --------------------------------------------- | dica | /dica/ | ROLE_CDL |…
-
2
votes1
answer325
viewsQ: Enum error with JPA + Hibernate
When performing a query in the database with JPA + HIBERNATE the following exception shall be made: java.lang.IllegalArgumentException: Unknown name value [Respondido] for enum class…
-
0
votes1
answer70
viewsA: Cache error when using the app engine, but locally it works!
Hello the problem was in a dependency conflict, the EHCACHE dependency was giving conflict with JCACHE dependency, <dependency> <groupId>org.ehcache</groupId>…
-
-1
votes1
answer70
viewsQ: Cache error when using the app engine, but locally it works!
My application SpringBoot works locally, but when I do deploy in the Appengine she did not over because of the error 500, I am using an implementation of EHCACHE in the pattern JSR-107 because from…
-
1
votes0
answers106
viewsQ: Database cache not being stored by Springboot
I am trying to store the cache of a database search made through JPA, for that I am using the annotation @Cacheable of the package org.springframework.cache.annotation upon the method…
-
1
votes1
answer721
viewsQ: How to create a @Onetomany relationship in JPA, in 3 tables that already exist in the database?
I want to create a relationship @OneToMany in JPA using 3 tables I have already created in my database (I don’t want it to create the tables for me), the tables are Usuario, Perfil and…
-
0
votes1
answer146
viewsA: I have two modals on the same page, but only one of them closes when clicking on the outside
After some time thinking, I found the solution to my problem, somehow the JS could not differentiate the 2 backgrounds of my two modals when they were clicked through the window.onclick as it was…
-
0
votes1
answer80
viewsA: The google maps marker does not change the icon correctly when clicked
After hitting head a few days and many searches in the gringa stackoverflow I managed to solve my problem, the problem was in the way I was using the setIcon, through the newly created marker…
-
0
votes1
answer80
viewsQ: The google maps marker does not change the icon correctly when clicked
I’m working with the API of google maps for javascript and I’m carrying markers that represent the position of deliveries (the blue motilas) on the map, when I click on a particular deliverer I want…
-
1
votes1
answer146
viewsQ: I have two modals on the same page, but only one of them closes when clicking on the outside
Hello I am developing two modals for my company and I am facing the following difficulty I have 2 modals one that carries a popup of customer feedback and another that shows a screen of repassar…
-
1
votes1
answer122
viewsQ: What is the difference between marginStart/marginLeft and marginEnd/marginRight?
I know that this doubt is quite simple, but I have already searched and still not found an answer that was satisfactory to me. After all the marginLeft is not equivalent to marginStart? And it…
-
2
votes1
answer47
viewsQ: Fragment being used by two different activties
I have a Ragment that is inflating a Recycler view, so far so good. The problem is that this Fragment needs to inflate into two different Rawer navigation, and when it comes to casting, I can only…