【发布时间】:2017-08-08 16:59:26
【问题描述】:
基本上我要做的是将此属性更改添加到休眠状态,以便在其所有属性值为空时启用复合/可嵌入对象的实例化:
hibernate.create_empty_composites.enabled
我知道编辑 Hibernate 的常用方法是在 application.properties 文件中,如下所示:
################################################################################
# JPA MANAGEMENT #
################################################################################
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true...
...
spring.jpa.properties.hibernate.create_empty_composites.enabled=true
但是spring.jpa.properties.hibernate.create_empty_composites.enabled=true 不起作用。我不确定 Spring 是否只是不识别某些属性,或者它只是放错了位置。
我想知道是否有其他方法可以直接编辑 Hibernate 属性,或者是否有其他修复方法。
【问题讨论】:
标签: spring hibernate jpa spring-boot spring-data-jpa