Hibernate Transaction Properties
By: Felix
The table below lists the Hibernate Transaction Properties and their purpose. For easier understanding, and example is also provided for each property
Property name | Purpose |
---|---|
hibernate.transaction. factory_class |
The
classname of a TransactionFactory to
use with Hibernate Transaction API
(defaults toJDBCTransactionFactory).
e.g. classname.of.TransactionFactory |
jta.UserTransaction | A
JNDI name used by JTATransactionFactory to
obtain the JTA UserTransaction from
the application server.
e.g. jndi/composite/name |
hibernate.transaction. manager_lookup_class |
The
classname of a TransactionManagerLookup.
It is required when JVM-level caching is enabled or when using hilo
generator in a JTA environment.
e.g. classname.of.TransactionManagerLookup |
hibernate.transaction. flush_before_completion |
If
enabled, the session will be automatically flushed during the before
completion phase of the transaction. Built-in and automatic session
context management is preferred.
e.g. true | false |
hibernate.transaction. auto_close_session |
If
enabled, the session will be automatically closed during the after
completion phase of the transaction. Built-in and automatic session
context management is preferred.
e.g. true | false |
Archived Comments
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Primary keys assigned by triggers in Hibernate
Assigned identifiers in Hibernate
Identity columns and sequences in Hibernate
EntityNameResolvers in Hibernate
Tuplizers (org.hibernate.tuple.Tuplizer) in Hibernate
equals() and hashCode() in Hibernate
Fetching strategies in Hibernate
Creating Connection Pool for JDBC Connections in Hibernate
Hibernate JDBC and Connection Properties
Hibernate Transaction Properties