Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support dependency injection in JPA AttributeConverter for EclipseLink [SPR-17159] #21696
With JPA 2.2 it is finally possible to do injection into AttributeConverters. The standard describes that when using CDI that injection. It would be nice if when using Spring injection would be supported as well.
JPA 2.1 introduced injecting in EntityListeners with CDI would be nice if injection would work for that as well.
Added bonus would be if this would work with both JPA and plain Hibernate.
Affects: 5.1 RC1
Reference URL: https://github.com/javaee/jpa-spec/issues/109
Juergen Hoeller commented
Indeed, #20852 covers this for Hibernate already. Since we need a callback from the persistence provider here, we can only really do this in conjunction with specific SPI contracts... such as the one that we got in Hibernate 5.3. Otherwise, the best you can is do use
I'll repurpose this ticket to the main missing part: JPA 2.2 injection support for EclipseLink.