Posts by Bruno S • 37 points
5 posts
-
-2
votes1
answer134
viewsQ: Insert with select if the field is null
I have today this INSERT in JAVA running but I need to implement a new routine: public void gravarLogAbonoUnificado(TbLogAbonClickUnic entity, RetornoAuxDto auxDto) { STRING SQL = "INSERT INTO" +…
-
2
votes1
answer104
viewsQ: Do not allow date 50 years back in the database
I have a JSF system and Primefaces 4.0 and I have a field <p: calendar> in which I did the treatment to not load dates in the current day Calendar up to -50 years. But still the user can type…
-
-3
votes1
answer74
viewsQ: Report in IREPORT - STATUS
Good morning , I need to change a report in IREPORT that works today as well: Currently the field works like this: (Boolean) $F{documentoVigente} ? "VIGENTE" : "VENCIDO" I have a text called…
-
0
votes1
answer116
viewsQ: Doubt in JPQL/HQL query
I need to make an appointment in HQL and I have this entity Hibernate. @Entity @Table(name = "TB_TIPO_DOCT", schema = "FEP") @NamedQueries({ @NamedQuery(name =…
-
-1
votes1
answer46
viewsQ: Using a NOT Criteria with Hibernate
Currently, I have a survey with Criteria that brings me results normally, but I want to add an implementation like NOT. Does anyone have any idea how I could do that? I put in the code a comment…