]
Scott Marlow commented on WFLY-3291:
------------------------------------
Verify that Hibernate will not keep a reference to the Jandex CompositeIndex before we
make code changes to pass "hibernate.jandex_index" to Hibernate (Jandex storage
should not be referenced after PersistenceProvider.createContainerEntityManagerFactory()
returns).
Pass Jandex CompositeIndex into Hibernate 5.x
----------------------------------------------
Key: WFLY-3291
URL:
https://issues.jboss.org/browse/WFLY-3291
Project: WildFly
Issue Type: Feature Request
Components: JPA / Hibernate
Reporter: Scott Marlow
Assignee: Scott Marlow
Fix For: 9.0.0.Beta1
1. When creating the persistence unit for Hibernate 5.x, pass a Jandex composite index
via:
integrationMap.put( "hibernate.jandex_index", CompositeIndex.create(
pu.getAnnotationIndex().values() ).
2. Also change from:
integerationMap.put( "hibernate.ejb.resource_scanner",
HibernateArchiveScanner.class )
To:
integrationMap.put( "hibernate.jpa.scanner_archive_delegate",
VirtualFileSystemArchiveDescriptorFactory.INSTANCE )
This may turn out to be a Jipajapa only change.