Hibernate setting up AttributeConverters before EntityManagerFactory is available under Wildfly

Description

The EntityManagerFactory is needed to build a Repository which is being injected into the AttributeConverter. e.g.

This triggers the following exception:

I am using the following configuration to provide Hibernate the set of SpringBeans for CDI:

If I try a non-constructor injection approach in my ExampleAttributeConverter e.g.

Then exampleRepository is never set and is constantly null when the AttributeConverter methods are invoked.

Activity

Show:

Details

Assignee

Reporter

Components

Affects versions

Priority

Created June 15, 2019 at 10:14 PM
Updated June 15, 2019 at 10:26 PM