Hibernate Transaction Properties

By: Felix Viewed: 153398 times  Printer Friendly Format    


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



Most Viewed Articles (in Hibernate )

Latest Articles (in Hibernate)

Comment on this tutorial