aws-mobile-appsync-sdk-android
aws-mobile-appsync-sdk-android copied to clipboard
Make generated code's field name different then in schema
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
Thanks for the feature request. We'll add it to our backlog for consideration.