Posts by utluiz • 72,075 points
957 posts
-
0
votes4
answers5177
viewsA: How to handle vectors in a Mysql database?
In terms of SQL the correct one would be to separate the tables according to the entities involved: Sale: code (PK), seller, date Product_sale: sales code (PK, FK), product code (PK, FK), quantity,…
-
3
votes4
answers2543
viewsA: Insert paragraphs from a JSON file into a DIV
To replace by <br/>, do: result = result.replace(/\n/g, "<br/>"); To replace by <p>...</p>: result = "<p>" + result.replace(/\n/g, "</p><p>") +…
-
25
votes7
answers8794
viewsA: How to Convert Mysql Database?
In some projects I simply saved all scripts in text files in a separate project and then versiono in my IDE. On the other hand, there are several frameworks that try to automate the task of…
-
18
votes2
answers4712
viewsQ: How to create Permissions (Permissions) instead of Roles (Roles) in Spring Security?
I am developing an Access Control module for my web application using Spring Security (3.1.4 - the latest release) and ran into a limitation in the mechanism of Authorization, as the framework only…
-
5
votes6
answers2089
viewsA: How to change the bottom lines of a table alternately? With support for older browsers
You don’t need to use code to do this, whether in PHP or Javascript, only CSS. Take this example: .tabela tr:nth-child(even) {background: #CCC} .tabela tr:nth-child(odd) {background: #FFF} Then just…
-
4
votes2
answers1058
viewsA: How to configure HTTP authentication with Jboss?
The Servlets API makes it possible to specify resource authentication in web.xml. See an example of documentation of Jboss 6: <web-app> <!-- ... --> <security-constraint>…
-
6
votes1
answer971
viewsA: Controller and service annotations
Unlike the generic annotation @Component, specific annotations mark classes with stereotypes, as well as in UML. Thus, if a class is annotated with @Service you can assume that it contains business…