Methos generate in org.hibernate.id.enhanced.OptimizerFactory$PooledLoOptimizer classs is not synchronized

Description

Receiving multiple primary key constraint violation exceptions when using SequenceStyleGenerator with optimizer parameter set to pooled-lo. Looking into the source code I found that the generate mathod for the new PooledLoOptimizer is not synchronized. After switching to PooledOptimizer (which has synchronized generate method) every thing works fine.

Environment

Hibernate 3.5.6-Final, Oracle 11g, WebSphere 6.1 cluster

Activity

Show:
Oskar Berggren
November 27, 2011, 5:25 PM

Duplicate of HHH-5929.

Duplicate

Assignee

Unassigned

Reporter

Tchavdar Roussanov

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure