问题1: 单元测试时, 报懒加载异常
解决: 实体类上增加注解 --> @Proxy(lazy = false)
问题2: table 'xxx.hibernate_sequence' doesn't exist
解决: 将ID生成略组改成@GeneratedValue(strategy = GenerationType.IDENTITY).
问题1: 单元测试时, 报懒加载异常
解决: 实体类上增加注解 --> @Proxy(lazy = false)
问题2: table 'xxx.hibernate_sequence' doesn't exist
解决: 将ID生成略组改成@GeneratedValue(strategy = GenerationType.IDENTITY).