You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add support for @JsonCreator() in the code generation of specific records? This would allow for example to let Jackson map Json to the generated classes whilst honoring optionals.
The resulting code would look like:
...
import com.fasterxml.jackson.annotation.JsonCreator
...
case class MyPropertyRecord @JsonCreator() (var propertyName: String, var tenantName: String) extends org.apache.avro.specific.SpecificRecordBase {
...
The text was updated successfully, but these errors were encountered:
spdrnl
changed the title
Default values in constructor?
Support for @JsonCreator()
Apr 3, 2017
O.k., I understand. The intention was to make it an option that could be switched on for Jackson; not to generate it always. I am still in the process to exactly figure out the necessities, there might be some apart from JsonCreator
Would it be possible to add support for @JsonCreator() in the code generation of specific records? This would allow for example to let Jackson map Json to the generated classes whilst honoring optionals.
The resulting code would look like:
The text was updated successfully, but these errors were encountered: