BX-ORM
  • Introduction
    • Release History
      • 1.x
    • About This Book
  • Getting Started
    • Installation
    • Configuration
      • Custom Hibernate Config
      • Secondary Caches
      • Logging
  • Modeling
    • Entities
    • Identifiers
    • Properties
    • Relationships
  • Usage
    • Built-In Functions
    • Querying
    • Events
    • Session Management
    • HQL
    • Transactions
    • Caching
  • External Links
    • ForgeBox
    • API docs
    • Source Code
    • Issue Tracker
Powered by GitBook
On this page
  • Transaction Rollback
  • Transaction Commit
  • Transaction Savepoint

Was this helpful?

Edit on GitHub
Export as PDF
  1. Usage

Transactions

Learn transaction management with bx-orm

A transaction is any discrete unit of work used to pool database queries and statements to execute at once. This helps us to prevent a failed update from leaving the database in a broken state.

To denote a transaction, we wrap it in the transaction{} tag:

transaction{
    // queries go here
}

The transaction will automatically commit (persist) at the end of the transaction block.

Transaction Rollback

This section is missing documentation - would you care to add it yourself?

Transaction Commit

This section is missing documentation - would you care to add it yourself?

Transaction Savepoint

Savepoints are not currently supported on ORM transactions.

Looking for ORM savepoint support? Contact our Support team to consider sponsoring this feature.

PreviousHQLNextCaching

Last updated 2 months ago

Was this helpful?