how to not have null in foreign key oneToOne Spring Boot?

后端 未结 0 1108
心在旅途
心在旅途 2021-01-26 04:59

I have to classes with one to one relationship. I\'m creating database using flywaydb. I want to be able to get wallet from db by userId.

User class

    @D         


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