Intellij IDEA 使用Hibernate生成实体类时返回值为_Dummy_的问题

原因,是因为在以前的普通类中生成getter & setter的时候,选择了setter的样式为Buidler模式。

解决方案,随便写一个Student类,写个name属性,给它生成一下setter,要记住在生成之前,把Builder模式改成Intellij Default,确定即可。

猜你喜欢

转载自blog.csdn.net/wang805447391/article/details/81098873
今日推荐