我有一个模型,它有一个相当大的子实体图,hibernate最后生成了大约9条语句来懒散地获取所有所需的数据,但是大约有4层深,我得到了一个“无法初始化代理-没有会话”的错误,我不知道为什么。(AbstractPersistentCollection.java:576) ~[hibernate-core-4.3.11.Final.jar:4.3.11.Final]
at org.hibernate.collection.internal.AbstractPersistentCollecti
from question_section然后Spring数据或Hibernate将这两个查询合并到一个代表调查表对象的数据对象中,并返回该数据对象。我的问题是,我希望One查询在两个表之间运行一个连接,而不是两个,然后将结果合并到内存中。我对Spring数据和ORM很有经验,而且没有找到任何关于为什么会发生这种情况的文档。老实说,我不会在意,只是我
对于使用Spring Boot应用程序(2.4.1)使用Spring Data JPA,使用基于javax.persistence注释的@Entity类。Whether to initialize the schema on startup.spring.jpa.hibernate.ddl-auto我确实意识到它被忽略了,并且实际上是强制使用spring.jpa.hibernate<