aws-mobile-appsync-sdk-android icon indicating copy to clipboard operation
aws-mobile-appsync-sdk-android copied to clipboard

Make generated code's field name different then in schema

Open Guneetgstar opened this issue 5 years ago • 1 comments

The issue arises when in the schema some field names are changed and to implement these changes one manually have to change all the references to the generated source files fields and hence their setters and getters. As in Room api, we can use annotation @ColumnInfo(name = "attribute_name") and can use any field name for the attribute_name for example name and it will work just fine means no need to change any references to the field or setters and getters to change the attribute_name in the schema, just change annotation to @ColumnInfo(name = "new_attribute_name") and you are all set. Well, I know Room is an ORM API but the feature I am talking about is necessary.

Guneetgstar avatar May 08 '19 07:05 Guneetgstar

@Guneetgstar

Thanks for the feature request. We'll add it to our backlog for consideration.

palpatim avatar May 10 '19 21:05 palpatim