Enabling globally_quoted_identifiers breaks hbm2ddl validation if TableGenerator is used

Description

Steps to reproduce:
1. Set hibernate.globally_quoted_identifiers and hibernate.id.new_generator_mappings to true.
2. Create an entity with @GeneratedValue(strategy = GenerationType.TABLE) which would force org.hibernate.id.enhanced.TableGenerator to be used as new_generator_mappings is enabled.
3. Create hibernate_sequences table in the database, either manually or by invoking hbm2ddl in update mode.
4. Invoke hbm2ddl in validate mode. It would fail saying that hibernate_sequences table does not exist.

Environment

Hibernate 4.1.9, HSQLDB 2.1.2 / MS SQL Server 2008 R2

Status

Assignee

Brett Meyer

Reporter

Sergey Parhomenko

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure