DiscriminatorValue not being quoted in SQL under hibernate 4.2 and 4.3

Description

I've updated from Hibernate 4.1.7 to Hibernate 4.3. I'm using hsqldb 2.3.2 and I'm encountering an issue with a joined inheritance strategy and a DiscriminatorValue annotation. Hibernate appears to be generating invalid SQL (not quoting a referenced DiscriminatorValue in a query). Code that worked in 4.1.7:

Now causes the following exception:

MyBaseObject.java:

MyChildObject1.java:

MyChildObject2.java:

Environment

Hibernate 4.3.7.Final, HSQLDB 2.3.2

Assignee

Unassigned

Reporter

Peter

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure