【发布时间】:2013-08-27 16:43:25
【问题描述】:
我在 Spring Framework 应用程序中使用 Hibernate 作为 JPA 提供程序(我使用它的EntityManagerFactory 而不是它的SessionFactory)。我设法让 Spring Framework 的加载时间编织支持工作,所以我克服了这个障碍。
我需要在实体上启用 byte[] 和 @ManyToOne 属性的延迟加载。我了解如何使用 Hibernate 的 ant 任务在 build 时检测(编织)我的实体,但我想改为在 runtime 检测我的实体(加载时编织)。我在几个 Google 搜索结果中看到了对 in 的引用,但没有启用它的实际说明。我需要设置什么属性来指示 Hibernate 它可以在运行时检测我的实体?
【问题讨论】:
标签: spring hibernate jpa hibernate-entitymanager load-time-weaving