Azure / azure-functions-java-library

Contains annotations for writing Azure Functions in Java
MIT License
43 stars 43 forks source link

TableInput Annotation doesn't Populate PartitionKey & RowKey for TableServiceEntity #106

Open Sarah-Aly opened 4 years ago

Sarah-Aly commented 4 years ago

If a POJO model inherits from TableServiceEntity, @TableInput annotation does not populate the PartitionKey & RowKey.

This is not a good experience for a few reasons:

The current workaround is to explicitly define getPartitionKey & getRowKey methods with the @StoreAs annotation.

I think the Functions/Functions SDK team can have multiple options for tackling this, each with their own pros & cons: