microsoft / spring-data-cosmosdb

Access data with Azure Cosmos DB
MIT License
94 stars 64 forks source link

Need the ability to Configure the Column Name With a Annotation Like we do in Spring Data JPA With @Column #536

Closed chaitanya-mittapalli closed 4 years ago

chaitanya-mittapalli commented 4 years ago

Need the ability to Configure the Column Name With a Annotation Like we do in Spring Data JPA With @Column

image

In the Above Entity I may Want to be the Column Name of the Field LastName to be last_name when a Document is generated in Cosmos Document DB. As of Now I do not see that ability with Spring Data cosmos

chrisgolle commented 4 years ago

it uses jackson object mapper underneath, so you can add jackson annotations to accomplish this.

chaitanya-mittapalli commented 4 years ago

Yup that is Working Thanks a TON @chrisgolle . Closing this Issue out

kushagraThapar commented 4 years ago

Thanks @chrisgolle