Posts by Rodrigo R. Coelho • 13 points
8 posts
-
0
votes2
answers140
viewsA: AND operators and OR
CriteriaQuery criteriaQuery = criteriaBuilder.createQuery(); Root employee = criteriaQuery.from(Employee.class); criteriaQuery.where(criteriaBuilder.and(…
-
0
votes1
answer55
viewsA: Nullpointerexception when generating graph
As placed by @Fábio conex.rs is null. See the method that initializes the object rs. In the same private Xydataset createDataset() class, see if at any time the conex.rs is actually initialized. For…
-
0
votes2
answers119
viewsA: Calendar showing the difference between two dates
Take the result of subtracting the two, in milliseconds, and divide by the value you want. example: var horas = Math.abs(data1 - data2) / (60*60*1000); Obs: Obviously, depending on how you set the…
-
0
votes1
answer39
viewsA: Return a button to its original state after 'download popup'
Have you turn into an ajax and change the status of the button in callback function retornaBotaoExportar() { //Seu codigo } $.ajax({type:'GET', cache: false, url: rquestURL, data:params, success:…
-
0
votes1
answer62
viewsA: How to persist data using JPA concatenated key in the @Manytomany relationship?
I think we’re missing an entity. In the case of concatenated key you need a class to be only the key and the actual entity will have this key. @Embeddable class EntidadeChave implements Serializable…
-
0
votes2
answers82
viewsA: Infinite loop in Precedure
I don’t really understand this syntax, but it seems to me that you’re not changing the value of &isTrue at no time. At some point I would expect a &isTrue=false because the while condition…
-
0
votes2
answers189
viewsA: How to locate information by considering a range (range of numbers)
Without your charts, it’s kind of hard to answer. If you have a table exactly like this excel and a table with the contributor factor, try something like this SELECT fat.bonus FROM tabela_fator…
-
1
votes2
answers962
viewsA: Validating null and/or empty fields when creating Java objects
I’m also not a fan of playing exception, as spoken by @Maniero, as this will be released at runtime and would make no difference regarding null verification. Instead of making an exception, use…