Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for @JsonCreator() #66

Open
spdrnl opened this issue Mar 31, 2017 · 2 comments
Open

Support for @JsonCreator() #66

spdrnl opened this issue Mar 31, 2017 · 2 comments

Comments

@spdrnl
Copy link

spdrnl commented Mar 31, 2017

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 {

...

@spdrnl spdrnl changed the title Default values in constructor? Support for @JsonCreator() Apr 3, 2017
@julianpeeters
Copy link
Owner

sorry @spdrnl, I wouldn't be able to justify adding a feature to support only one library.

@spdrnl
Copy link
Author

spdrnl commented Apr 5, 2017

Hi Julian, thanks for your reply!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants