Lombok @Builder and JPA Default constructor

前端 未结 8 1909
遇见更好的自我
遇见更好的自我 2020-12-04 11:03

I\'m using project Lombok together with Spring Data JPA. Is there any way to connect Lombok @Builder with JPA default constructor?

Code:



        
8条回答
  •  醉话见心
    2020-12-04 11:25

    Jeff's answer works fine however, @Builder does not support self-reference relationships yet.

    Check this question for more details:

    JPA @OnetoOne self reference relationship with both columns non null

提交回复
热议问题