Add support for sequence generation in same transaction.

Description

Currently hibernate core suspends the currently running application transaction and starts another transaction when the available unique identifiers are exhausted.

To improve on performance at the managable cost of application execution when concurrent changes to sequences occur make the work occur in the currently running transaction. This will reduce the total number of transactions necessary by the system.

Environment

All environments. Any data-store.

Status

Assignee

Jeremy Whiting

Reporter

Jeremy Whiting

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.2.3

Priority

Major