java get class field value everytime its used

后端 未结 0 1593
轻奢々
轻奢々 2021-01-03 16:26
    @Entity
    public class Cart {
    
        @Id
        @Column(unique = true, nullable = false)
        private String id = UUID.randomUUID().toString();
              


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