JPA AttributeConverter is not CDI aware #50436
lordofthejars
started this conversation in
Community
Replies: 1 comment
-
|
With Repository pattern fails as well |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I read that after JPA 2.2,
AttributeConverterare CDI aware so you can use Inject annotation.I developed an AttributeConverter:
And my PanacheEntity:
But when I call persist I got a NPE because instance is not injected.
Is it normal? A bug? Maybe as a workaround I need to switch to Repository pattern?
Beta Was this translation helpful? Give feedback.
All reactions