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

Allow defining custom JSON field names for DTO interfaces #111

Merged
merged 1 commit into from Jun 11, 2015

Conversation

tareksha
Copy link
Contributor

A new annotation, @JsonFieldName, allow defining it

Signed-off-by: Tareq Sharafy tareq.sharafy@sap.com

*/
protected String quoteStringLiteral(String value) {
StringWriter sw = new StringWriter();
JsonWriter writer = new JsonWriter(sw);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may we use try-with-resources here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@skabashnyuk
Copy link
Contributor

Add @beta on JsonFieldName

Signed-off-by: Tareq Sharafy <tareq.sharafy@sap.com>
@tareksha
Copy link
Contributor Author

@skabashnyuk done
@mshaposhnik done

skabashnyuk added a commit that referenced this pull request Jun 11, 2015
Allow defining custom JSON field names for DTO interfaces
@skabashnyuk skabashnyuk merged commit 341e26f into codenvy-legacy:master Jun 11, 2015
@tareksha tareksha deleted the dto_custom_field_names branch June 13, 2015 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants