EntityListenerからEntityManagerやQueryを触るの禁止。
A callback method must not invoke EntityManager or Query methods!
stackoverflowを探してみるとJPAの仕様でも非推奨のようです。
それよりもEntityにEntityManagerをインジェクトしたい…。
Springなら楽そうなのになぜCDIで方法が見つからないのか。
A callback method must not invoke EntityManager or Query methods!
stackoverflowを探してみるとJPAの仕様でも非推奨のようです。
それよりもEntityにEntityManagerをインジェクトしたい…。
Springなら楽そうなのになぜCDIで方法が見つからないのか。