小编ape*_*ach的帖子

错误:懒惰类的获取者不能是最终的 Kotlin Spring Boot

我尝试在 Kotlin 上创建 REST Spring Boot Server。我使用数据库 - 首先使用内置的 Intellij 工具自动生成实体。启动服务器时弹出错误:

2020-01-12 15:09:14.387 ERROR 23016 --- [  restartedMain] o.h.tuple.entity.PojoEntityTuplizer      : HHH000112: Getters of lazy classes cannot be final: ru.madbrains.smartfridgemanager.server.model.MealplanEntity.name
2020-01-12 15:09:14.391 ERROR 23016 --- [  restartedMain] o.h.tuple.entity.PojoEntityTuplizer      : HHH000243: Setters of lazy classes cannot be final: ru.madbrains.smartfridgemanager.server.model.MealplanEntity.name
2020-01-12 15:09:14.391 ERROR 23016 --- [  restartedMain] o.h.tuple.entity.PojoEntityTuplizer      : HHH000112: Getters of lazy classes cannot be final: ru.madbrains.smartfridgemanager.server.model.MealplanEntity.refRecipeEntities
2020-01-12 15:09:14.391 ERROR 23016 --- [  restartedMain] o.h.tuple.entity.PojoEntityTuplizer      : HHH000243: Setters of lazy classes cannot …
Run Code Online (Sandbox Code Playgroud)

rest jpa kotlin spring-boot

6
推荐指数
2
解决办法
4818
查看次数

标签 统计

jpa ×1

kotlin ×1

rest ×1

spring-boot ×1