Posts by Gustavo Batistuti • 21 points
2 posts
-
1
votes2
answers248
viewsA: Null return for a JPA method
I ended up solving it this way: public LocalTime buscaUltimaHoraFimDeAlocacaoDoConsultor(Agendamento agendamento) { Calendar calendar = Calendar.getInstance(); Date data = new…
-
1
votes2
answers248
viewsQ: Null return for a JPA method
I have a method in my Pository that searches for a specific user’s last minute and a specific date as well, both passed as argument. However, if there is no record on the last date it returns null…