-
Notifications
You must be signed in to change notification settings - Fork 63
Allowing Long as Id in Entity #539
Comments
@apescione these are the cosmosdb limits for item creation : https://docs.microsoft.com/en-us/azure/cosmos-db/concepts-limits#per-item-limits |
Also, as an update, this repo is now being moved to azure-sdk-for-java : https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/cosmos/azure-spring-data-cosmosdb |
Also, as a bigger ask, we are tracking this issue here as well : #295 |
@apescione may I ask what happens when you use |
Hi @kushagraThapar, thank you for replying to me.
|
@apescione - thanks for sharing the logs. Though cosmosdb always treats the id as string in the backend, but I guess that should not limit us to allow |
Closing it here as this is being tracked in a separate repo. |
I've notice that the class
https://github.com/microsoft/spring-data-cosmosdb/blob/master/src/main/java/com/microsoft/azure/spring/data/cosmosdb/repository/support/CosmosEntityInformation.java#L153
allows to have only string and Integer (plus primitive int) as Id's type. So, choosimg Long or long as Id, the Spring data throws an error IllegalArgumentException. Why not enabling also Long type being Cosmos Db id an string?
In many cases, an Id as long could be useful.
The text was updated successfully, but these errors were encountered: