azure-sdk-for-java
azure-sdk-for-java copied to clipboard
[FEATURE REQ] Cosmos Container id field type UUID
Container id field currently supports only types: String, int and long. But internally it is GUID/UUID serialized as a string. It would be great to support UUID directly. Related docs
Current way:
public class GeneratedIdEntity {
@Id
@GeneratedValue
private String id;
}
Suggested way:
public class GeneratedIdEntity {
@Id
@GeneratedValue
private UUID id;
}
And than all related layers would reflect it as well, repositories, queries, ...
Thank you.
@kushagraThapar PTAL
This is done.