Search code examples
javajpaentitymanagerstateless

Is there a stateless version of the JPA EntityManager?


Hibernate has a Stateless Version of its Session: Does something similar exist for the JPA EntityManager? I.e. an EntityManager that does not use the first level cache?


Solution

  • Not part of the JPA API or spec. Individual implementations may allow disabling the L1 cache. DataNucleus JPA, the one I have used, does allow this