Rather than instantiating an empty instance via a no-arg constructor, allow for the construction of entities via constructor that takes values for the fields. Questions to answer:
- Should all the fields be required in the constructor?
- If no, should the remaining fields be set via field injection?
- Should the constructor parameter names be forced to match field names so we can order them properly when invoking?
- Should we rely on document order instead?
- Should we allow for explicitly mapping constructor parameters to fields via annotations on those parameters?
- is depended on by
-
JAVA-2247 Support decoding of GeoJSON objects
- Closed