是否有无状态版本的JPA EntityManager? [英] Is there a stateless version of the JPA EntityManager?

查看:139
本文介绍了是否有无状态版本的JPA EntityManager?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hibernate有一个其会话的无状态版本:JPA EntityManager是否存在类似的东西?即一个不使用第一级缓存的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?

推荐答案

不属于JPA API或规范。单独的实现可以允许禁用L1高速缓存。我使用的DataNucleus JPA确实允许这个

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

这篇关于是否有无状态版本的JPA EntityManager?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆