azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

[FEATURE REQ] Cosmos Container id field type UUID

Open JV-TMCZ opened this issue 3 years ago • 1 comments

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.

JV-TMCZ avatar May 12 '21 09:05 JV-TMCZ

@kushagraThapar PTAL

joshfree avatar May 17 '21 20:05 joshfree

This is done.

kushagraThapar avatar May 11 '23 00:05 kushagraThapar