Difference between a hibernate transaction and a database transaction
来源:互联网 发布:虚航软件 编辑:程序博客网 时间:2024/05/18 20:08
Is there a difference between the two? For example within a hibernate transaction we can access the database, run some java code and then access the database again. We can’t do that within a transaction done via SQL can we? Is this the difference?
The 2 directly relate to each other - a Hibernate transaction maps to and controls the JDBC (database) transaction.
You can do the same thing with direct JDBC / SQL, without Hibernate - though you’ll need to call Connection.setAutoCommit(false)
to get started. Otherwise, by default, a commit is called after each statement - making each statement run in its own transaction.
0 0
- Difference between a hibernate transaction and a database transaction
- Difference Between CALL TRANSACTION and SESSION METHOD
- Summary on 20080626: some difference between JDBC transaction and JTA
- Difference between new A and new A()
- A difference between decltype and auto?
- Distributed Database and Distributed Transaction
- What is the difference between a thread and a process?
- What is the difference between a definition and a declaration?
- What's the difference between a thread and a process?
- What’s the difference between a stack and a heap?
- What is the difference between a process and a thread?
- Difference between a SOAP message and a WSDL?
- What's the difference between a URI and a URL?
- Difference between a LinkedList and a Binary Search Tree
- What's the difference between an event and a delegate?
- Understanding the Difference Between an Argument and a Parameter
- What is the difference between an EXE and a DLL?
- Difference between release and debug build when initial a struct
- Android中仿QQ聊天内容中提取电话号码,URL
- 安装、配置hive
- Leetcode Decode Ways
- Linux中用stat命令查看文件时3个时间点解析
- Android禁用回退事件
- Difference between a hibernate transaction and a database transaction
- Unity 3DC#语法基本知识点
- eclipse新建项目需改项目包路径时需改动的地方
- 打开FTP服务器上的文件夹时发生错误,请检查是否有权限访问该文件夹
- Zinnia Installation
- 动态规划-背包问题求解过程【代码 from eason】
- 数据库之一范式、建表、连接
- A small test demo about the ++ operator
- smartgit使用不当将文件误删除怎么办?没有commit怎么办?