Posts by Doug Cunha • 156 points
13 posts
-
1
votes1
answer1217
viewsA: insert data from an array into the database - java
You have the 1:N ratio, so create the menu table with all possible items. For each item you enter a record in the requested table stating the order ID and the item ID. If Order 001 has "silver1" and…
-
1
votes4
answers1903
viewsA: How to join two lines in SELECT?
Use SELECT DISTINCT. The function already filters the field that will perform select, I believe that by reassembling your want using it can facilitate.…
-
0
votes1
answer41
viewsA: SIP Skype on Asterisk Does not Register
For instabilities Oce needs to carry out the whole process of Troubleshooting for void and networks. Register the account on a Softphone and leave logged in for n days and see if the same problem…
linuxanswered Doug Cunha 156 -
0
votes1
answer103
viewsA: Spring MVC - Write Data to TXT
Create a method in your control that receives a post type request with the data you want to save as parameter. Create a Txtdao for the CRUD you want to perform on top of that txt. The request…
-
1
votes2
answers60
viewsA: How to search the bank with three types of user?
In your User class, set the attribute "Usuario type" or something of the type and when instantiating the object set its type searching the values in an Enum. Sort of like: public enum TipoUsuario {…
-
0
votes1
answer129
viewsA: Hibernate with dynamic table names
If Voce is using Hibernate you can extend the Improvednamingstrategy class (which inherits from the Namingstrategy interface and generates the methods) and overwrite the method that generates the…
-
3
votes1
answer50
viewsA: Doubt the JAVA and Tomcat Server application
You must generate the . War of that application you have. By the eclipse in the Export menu... you can find the option "War file", from theTomcat you access the Managment via web and deploy the app.…
-
1
votes2
answers2382
viewsA: Query with dynamic spring data column
In the documentation itself you have @Query example with Namedparameters: -- 5.3.6. Using named Parameters By default Spring Data JPA will use position based Parameter Binding as described in all…
-
1
votes1
answer1040
viewsA: How to restrict so that you do not set a longer date and then a shorter date using Calendar Restrict?
Use ajax, when the field loses focus you call the System and invoke the set method to set the start date, then in the second field set the minimum date to be the value set by the previous date…
-
0
votes1
answer539
viewsA: CPF Field Mask
There is no native way to apply masks to textFiled in Javafx. You must use a library or do the work manually. In several other stackoverflow questions you can identify some ways to solve this…
-
1
votes1
answer653
viewsA: Pick row reference in table with JSF(Primefaces)
The problem was occurring because when I clicked on my commandlink, when opening the showdialog was destroyed and reloaded my Managedbean, so my array was reloaded with the latest information. I…
-
1
votes1
answer653
viewsQ: Pick row reference in table with JSF(Primefaces)
I have a scenario that presents something weird and I don’t understand why this behavior. Using JSF with Primefaces, I have a Datatable with some (several) values that comes from the Database and…
-
1
votes2
answers441
viewsA: Direct port 5060 (SIP Asterisk) to eth1
You need to direct beyond the 5060 log ports, also the RTP ports, otherwise you will only authenticate but will not pass audio.
iptablesanswered Doug Cunha 156