I created an enum and need to set the values in the database in this way:
If it is Revenue, the value is 0;
If Expense, the value is 1;
This is my Enum:
public enum EntryType {
INCOME, OUTPUT;
}
In my java controller, the type...
I am making a simple crud in java using jsp and servlets .
And I came across the following situation:
I have layout.jsp which makes the include of another dynamic page, which in this case will be excluir.jsp ....
I'm using Java, JPA, Primefaces, Wildfly, I have a datatable that I need to export to PDF, in excel it just adds the poi.jar that works but in PDF I do not know which poi I should add, / p>
I'm trying to persist (insert data) using AngularJS and WebService REST in Java, when I click Insert, the following error appears in the console: >
POST link 415 (Unsupported Media Type).
What could it be?
// WEB.XML
<?xm...
I have the following problem: I created in Java a selectcheckbox , where the person will select several objects; when I send to managed bean , I get these objects listed. Now I want to send as a parameter to ireport to generat...
I'm working with AutoComplete of primefaces and I'm having a problem. For example, the user types the OSW word in the combo and then dropdown lists all contracts that have the term OSW .
So far so good, but when the user...
The question is this ... although the problem does not involve JPA / ORM I find it interesting to contextualize.
My project has an @Entity Address and as the name suggests it is an entity responsible for storing data related to the real est...
Why do we have Exceptions ( IOException , for example) and Errors ( OutOfMemoryError , for example)?
I know that both inherit from the Throwable class, but What is the difference between them?
I'm pretty new to java and I'm working on the project so I have to draw a triangle (which I have to call alice) which is located in the upper left corner of the screen and it has to move straight to the corner top right, then move to the lower r...