java - 更新时 hibernate 缓存

标签 java hibernate session caching

当我只进行插入(写入)操作时,我需要关心 hibernate session 缓存吗?

忽略什么问题,只是为了满足 SO 质量标准:

    BiteMe bite=new BiteMeToo("");
bite=null;
bite.letsBite(); //NullPointerException

最佳答案

如果您从未在同一 session /事务期间从数据库读取数据并且不使用扩展持久性上下文,则不必关心缓存内容。

关于java - 更新时 hibernate 缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26887280/

相关文章:

java - 用于 Java 的 UPnP 库

java - Spring Criteria 查询数学运算

java - 映射到许多值

java - 分布式微服务共享状态

php - 反序列化 PHP session 数据

ruby-on-rails - 如何根据 Parse REST API 中的 session token 检索用户?

java - 如何在 App Engine 中建模多对多关系?

java - Spring Boot属性到对象

Java 错误 : Issue with for loop which should convert every content of a string array to a float array

Hibernate SQLQuery 绕过 Hibernate session 缓存