Posts by Leandro Silva • 93 points
13 posts
-
0
votes0
answers82
viewsQ: Hibernate 5.1.16.Final + MSSQL + Java7 + C3P0
I am successfully using Hibernate to consult a MS SQL database, but I get the message that I should not use in production. Using Hibernate built-in connection pool (not for production use!) ....…
hibernateasked Leandro Silva 93 -
1
votes0
answers83
viewsQ: JPA - Entitymanagerfactory - Slow execution
Expensive, I am playing with Persistências and something strange occurs when running from the eclipse. The same does not occur when running in the jar. Has anyone been there? Eclipse Photon (4.8.0)…
-
1
votes0
answers23
viewsQ: Treat link drop with JPA Hibernate bank timeout
I need to treat fall link application with the bank in addition to keeping a low timeout, since the standard in my tests is 15 seconds. Fault: Caused by:…
-
0
votes2
answers35
viewsA: Select multiple tables by sorting by date
I added a column to the JOURNEY table by placing it as a foreign key to the INTERVAL table id. mysql> SELECT * FROM JORNADA;…
-
1
votes2
answers35
viewsQ: Select multiple tables by sorting by date
mysql> SELECT * FROM COLABORADOR; +----+----------+ | ID | NOME | +----+----------+ | 2 | FULANO 2 | | 3 | FULANO 3 | +----+----------+ 2 rows in set (0.00 sec) mysql> SELECT * FROM JORNADA;…
-
-1
votes2
answers116
viewsA: How to keep the last 100 objects inserted in an Arraylist?
I got what I wanted with while.. public static void main(String[] args) { // TODO Auto-generated method stub ArrayList<String> arr = new ArrayList<>(); for(int i = 0;i < 150 ; i++){…
-
-4
votes2
answers116
viewsQ: How to keep the last 100 objects inserted in an Arraylist?
How to keep the last 100 objects inserted in an Arraylist? This will be constantly fed but I want to keep only the last 100.
-
0
votes2
answers404
viewsA: Extract groups with regex
I was misinterpreting the way Pattern works. The solution was to inform the characters between the two groups I wish to extract by inserting the quantifier .* Pattern p =…
-
2
votes2
answers404
viewsQ: Extract groups with regex
I need to extract the Session and the date from the line below, and the date I have separated with dash and slash. The Patterns work properly individually but when I try to extract both, nothing…
-
0
votes1
answer74
viewsA: Tomcat 9 - application/json was not found
Good. By converting Arraylist to String with Gson I was able to succeed, but I was intrigued and researching found that only by including Genson in the project my problem would be solved ... and it…
-
1
votes1
answer74
viewsQ: Tomcat 9 - application/json was not found
Greetings, I am developing a WS in Jersey/Restful which is working properly in Glassfish but in Tomcat I get the error when trying to consume the service. GRAVE: Mapped Exception to Answer: 500…
-
3
votes2
answers670
viewsA: GRID Bootstrap column size - Customized value
Thanks to everyone but I ended up solving adding a stylezinho ... as it is a specific point became easier and simple this solution ..…
-
1
votes2
answers670
viewsQ: GRID Bootstrap column size - Customized value
Greetings! Could someone give me a light as to the image below ... The question X is that I need a middle ground in this alignment. If I put col-Md-1 cut the input if I put col-Md-2 gets very large.…