Posts by Gilvan André • 504 points
26 posts
-
0
votes1
answer115
viewsA: Where to save data in Angular where it can be accessed from anywhere and, when changing it, update component
Good people, I’m studying on my own and I think I skipped a few steps before I started implementing the software. To solve my problem I started using Ngrx. This approach is new to me, but after…
angular-8answered Gilvan André 504 -
0
votes1
answer43
viewsA: the serialVersionUID of has to be the same in all classes "Serializable"?
It may be the same or it may be different as explained in the following link: https://blog.caelum.com.br/entendendo-o-serialversionuid/ By default JDK is in charge of validating and generating the…
-
1
votes1
answer620
viewsA: Direct Print to Non-standard Printer with Jasperprintmanager
Hello, you can do that. Using the import java.awt.print.Printerjob; try { String report = JasperCompileManager.compileReportToFile(sourceFileName); JasperPrint jasperPrint =…
-
0
votes1
answer115
viewsQ: Where to save data in Angular where it can be accessed from anywhere and, when changing it, update component
Good people, my question may be really stupid, but it’s because I’m studying about Angular and how to use it. I wonder where I can save data that, by changing it, I can recover anywhere in the…
angular-8asked Gilvan André 504 -
1
votes1
answer198
viewsQ: Angular 8 - Difficulty recovering headers
Save guys, I’m trying to get the header of the return of my http request to log in. In the header of this Response contains a key 'Authorization', but with the following code I am not able to get…
-
0
votes2
answers189
viewsQ: JSON.stringfy of large objects with Angular 8
I am starting an application with Angular 8 and have a question that is being complicated to solve. Is there a practical way to turn a javascript object into a JSON string defining which attributes…
-
0
votes1
answer211
viewsA: Mysql returns Localdate a day ago
After performing several tests, I found reports about the same problem and solved it by configuring the Mysql time_zone. set @@time_zone = '-03:00' set @@session.time_zone = '-03:00' it is necessary…
-
0
votes1
answer211
viewsQ: Mysql returns Localdate a day ago
I am unable to identify a problem using Java Localdate with Mysql Date. When saving a date in my Mysql database it saves on the correct date, for example: 2019-05-24. When doing a search using…
-
0
votes1
answer140
viewsA: Misguided printing of Jaspersoft
To solve the problem, I created a report of the size of the A4 page, I added to it a sub-report with the desired print size, with this, the system printed the receipt in the portrait orientation the…
jasper-reportsanswered Gilvan André 504 -
0
votes1
answer140
viewsQ: Misguided printing of Jaspersoft
I have the impression of a small receipt in the orientation portrait I made in Jasper Studio, but when printing it, it appears in the landscape orientation. For some reason PDF readers do not…
jasper-reportsasked Gilvan André 504 -
0
votes0
answers87
viewsQ: Googoostatementcache - Multiply Prepared statement!
Hello, when changing an object and saving I am having problems of slowness and in a few moments even totally locks my application. By persisting is returning me only this information, but I could…
-
0
votes1
answer304
viewsA: How to simulate a logged-in user in an application with Demoiselle 2.4.2?
Demoiselle has a very effective authentication and authorization scheme. I advise you to check the doc, as you use version 2.4.2, the link is as follows: Desmoiselle - Security Attention the…
-
0
votes0
answers26
viewsQ: Function to unzip xml does not work on Linux
In my application I use a function to zip the xml files to save them in the database. When I unzip it to make the file available for download the xml does not come complete, at the end of the file…
-
2
votes3
answers752
viewsQ: Update page after download
I am working on a JSF page and I need to download a .pdf. When downloading the object is changed and I need to update it as I cannot allow the same download more than once. But if I use…
-
2
votes3
answers658
viewsA: Business rules in JSF
Hello. I don’t know if that would really be an answer because you could use it the way you think best. Here in the company where I work we have this structure: Our vision layer is composed of: Page…
-
1
votes1
answer65
viewsQ: Remove pagination from Demoiselle
I’m using Demoiselle and its pagination feature, but when I need to use all the listed objects, ie, use the full return, it does not let, it keeps the pagination. My pagination: @Override public…
-
0
votes1
answer224
viewsQ: Paging using Demoiselle 2.5.0
I started testing the system today with the most current version of Démoiselle (2.5), however, paging is no longer working. When entering the page the content is listed, but by the time you change…
-
1
votes1
answer314
viewsQ: Save entity and all its daughter entities
I have problems with the updates of my entity Mdfe, before explaining what happens, I would like you to look at the image below, from it I can explain better. We can verify that The Mdfe has a…
-
7
votes4
answers957
viewsQ: Intercept Exception
I am using Demoiselle in my application, but it has not been behaving very well in one aspect. In an association between two or more entities, deleting an exception is made. With the exception…
-
1
votes1
answer137
viewsA: Change and delete objects before persisting in BD
Hello. I have checked the entities and contacted that you do not have the Manytoone relations of Customerservice to Customer and Destinationrequested to Customerservice. I changed some classes and…
-
0
votes3
answers1715
viewsA: Create a Trigger that runs whenever a product is deleted
Good afternoon. First you should check whether it should be executed before or after deleting. Check this link, it may help you: Introduction to Triggers Hugs.…
-
1
votes2
answers869
viewsA: Exception with Convert from a Primefaces selectOneMenu
Try to use a converter for each entity as follows: @FacesConverter(value = "ConversorAutor") public class AutorConverter implements Converter { In your xhtml use the convert property in…
-
0
votes4
answers1762
viewsA: Add element in List (Arraylist)
Good morning. Your methods are a little confused, start by simplifying them. I will comment on the code to try to explain. public void verificaTodosProcessosAptos(){ //Este metodo faz a mesma coisa…
-
3
votes1
answer1738
viewsQ: Lazy Load Onetomany
Hello. I’m having trouble getting my relationships fetch = Fetchtype.LAZY to work with the @Onetomany annotation. In my Notafiscal entity, there are several lists fetch = Fetchtype.LAZY, when…
-
2
votes4
answers186
viewsA: Dropdown menu opens partially
Hello. I ran some tests here. You must add the option <li style='overflow:visible;', will look like this: <li class="media" style="overflow:visible;border-bottom: solid 1px; margin-bottom:…
-
4
votes1
answer721
viewsQ: Hibernate + Inheritance
I’ve been trying for some time a solution to my problem. I’ve done a lot of research but nothing clearly explains what I need. So I created an example application and am making it available from…