Posts by Danilo Fernandes • 159 points
6 posts
-
3
votes1
answer260
viewsQ: Incorrect information when loading bigdecimal entity
I have a table, that one of your columns is a Numeric(25,10) that will be shown the rates. But there are records that will be zeroed ( 0.0000000000 ) In my entity you own that fee, as a Bigdecimal.…
-
2
votes2
answers952
viewsQ: Enum as Hibernate Parameter Namedquery
Is there any way to pass as a parameter in a NamedQuery the value of Enum. public enum TipoConta{ CREDITO("Cartao de Credito"), DEBITO("Cartao de Debito"); private final String descricao;…
-
2
votes1
answer365
viewsQ: Collection Namedquery as Parameter
I am using the Namedquery of JPA, to create a DTO. And in my Query I have as condition one IN and as a parameter of IN has values with white spaces in the middle. (Ex: 9292 929). and these values…
-
4
votes1
answer824
viewsQ: Create Dto by Constructor with a List parameter of a Hibernate entity
I have a @Query Spring, which performs a database query by an Entity, to create some Objects DTO. And the properties of this DTO object, I pass via Constructor, but I needed to pass as parameter in…
-
2
votes1
answer855
viewsQ: Compare Local time Joda Time
I have a comparison that checks whether the current time is after the time set. LocalTime horaConfig = new LocalTime(6, 00, 00); LocalTime horaAtual = new LocalTime(20, 00, 00);…
-
2
votes2
answers1812
viewsQ: Why compare Enum with an Enum Object
When I was learning Java, I had a Class that had a property like Enum, and, at a certain point, I wondered if what was coming in a Method was equal to a constant of the Enum, something like that:…