Closed
Description
Andrei Ivanov opened SPR-13892 and commented
Trying to inject a custom LoadTimeWeaver
into a LoadTimeWeaverAware
fails, as it initially gets injected but then the LoadTimeWeaverAwareProcessor
comes along and injects the default loadTimeWeaver
.
<context:load-time-weaver />
<bean class="org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager">
<property name="defaultPersistenceUnitName" value="compositePU" />
<property name="packagesToScan">
<list>
<value>com.test.module1.entity</value>
<value>com.test.module2.entity</value>
</list>
</property>
<property name="properties">
<props>
<prop key="eclipselink.composite-unit">true</prop>
</props>
</property>
<property name="loadTimeWeaver">
<bean class="CustomLoadTimeWeaver" />
</property>
</bean>
Affects: 4.2.4
Issue Links:
- Proper load-time weaving support for Hibernate 5 [SPR-13886] #18459 Proper load-time weaving support for Hibernate 5
0 votes, 5 watchers