Change MongoDb ObjectId _id to string in Micronaut using java

后端 未结 0 1645
感动是毒
感动是毒 2020-12-07 00:13

I have below Pojo class for the mongo entity

public class Product {
    @BsonProperty("_id")
    @BsonId
    private ObjectId id;
    private String         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题