Replies: 3 comments
-
I don't have a strong opinion here. I also tend to prefer to use primitives unless their default value might change semantics (e.g. |
Beta Was this translation helpful? Give feedback.
-
To clarify, I've been replacing This approach can cause issues with detecting whether a value has been set since a primitive numeric field is initialized to 0 and it makes it hard to know if the 0 value was set, or if it was just the initialized value. But that seems to be an issue in JPA/Hibernate and not Micronaut Data JDBC. |
Beta Was this translation helpful? Give feedback.
-
Consistency is nice; however, can give the impression that it is the only way. Main reason I would argue for use of both in the guides is that they are under test. IMHO: Having |
Beta Was this translation helpful? Give feedback.
-
@burtbeckwith PRs are replacing the usage of objects with primitives. I personally prefer using Objects instead primitives but we should decide what do as a guide style and be consistent.
Please note that our documentation, for example in Micronaut Data, uses
Objects
instead of primitivesNot primitives
@graemerocher @shingjo @alvarosanchez @graemerocher @burtbeckwith thoughts?
Beta Was this translation helpful? Give feedback.
All reactions