Posts by Marlucio Pires • 161 points
12 posts
-
0
votes1
answer64
viewsA: Consumption of URL https IBPT
The error was in the url, do not have to socket to IBPT queries. Just use a url encoding where there will be spaces, for example in the product description and in the "no gtin". Ex:…
-
-1
votes1
answer64
viewsQ: Consumption of URL https IBPT
I need to consume the new IBPT url to do tax calculations without importing tables. The url is this : https://apidoni.ibpt.org.br/api/v1/products?token=..tMobi=un&valor=34000.00>in=sem gtin…
-
10
votes2
answers908
viewsQ: Capitalize Javascript text, ignoring abbreviations
I have a Javascript code to capitalize text that treats some exceptions. However, I would like to address a few more, such as ignoring abbreviations, which would be to have a point before or after…
-
1
votes1
answer771
viewsA: Get the latest record by date from a mysql release history
Guys I’ll leave here to document the forum. I will not leave the whole query,because the goal is to get a record meeting the question of higher date. So the first thing to do is a query ordering by…
-
0
votes1
answer771
viewsQ: Get the latest record by date from a mysql release history
I need to pick up the latest donation situation at a certain time. I need to group by donation and by situation. Add by situation and order donations by situation, taking only the last. Tabela…
-
2
votes1
answer193
viewsQ: How to reduce JSF application CPU consumption
From a while ago, my application started to have a very large CPU consumption. I installed Jprofiler, and from what I understand from him, there’s a problem with the c3p0 from Ibernate. I am using…
-
0
votes0
answers84
viewsQ: Problem to convert with composite key into jsf, selectonemenu
I am making a selectOneMenu where the itemvalue will be a composite key. Which will be separated by a hyphen. However, when sending, the getasobject method is called several times, sending all items…
-
0
votes2
answers453
viewsA: Capture, as string, xml-specific tag
I solved it this way protected String outputXML(Document doc) throws TransformerException, UnsupportedEncodingException { ByteArrayOutputStream os = new ByteArrayOutputStream(); TransformerFactory…
-
0
votes2
answers453
viewsQ: Capture, as string, xml-specific tag
You only need to save the signature tag of an xml. The method for signature is this: private void assinarMdfe(String tipo, XMLSignatureFactory fac, ArrayList<Transform> transformList,…
-
1
votes1
answer333
viewsQ: Domain configuration in Tomcat-jsf applications
I have a jsf application running on the company server, using Tomcat 8.5. Currently I mark the server ip through the service of the site noip.com configured in my router. Only recently the service…
-
1
votes2
answers224
viewsA: Why does Hibernate not list results if the select query calls table null field?
To resolve I had to do left Jun in the query, and when calling Prod.unComer was already to do. It’s kind of redundant, but it was the solution I had to make select prod.id as prod, prod.cod as cod,…
-
1
votes2
answers224
viewsQ: Why does Hibernate not list results if the select query calls table null field?
I have a Product Entity-Class. @Entity public class Produto implements Serializable{ @Id @GeneratedValue private long id; @Column(length = 70, nullable = false) private String cod; @Column(length =…