Add ability to mark keywords as protected dynamically to prevent table aliasing when using @Formula

Description

Using the following in a @Formula does not work due to keywords being aliased to the entity the formula is part of:

The end result is:

What (I think) might be preferable is being able to indicate that certain parts are keywords and that they shouldn't be aliased. The inverse is already doable by adding backticks to a field/table/whatever that does match a protected keyword. For example:

... or something of that nature which Hibernate can seek out a know to process differently. I have no idea if "!!" would be usable, but I think you get what I'm saying.

Environment

3.2.5.ga/Oracle 11g database

Activity

Show:
Ian Simpson
January 28, 2011, 12:13 AM
Edited

Sorry, screwed up that second block and I don't appear to be able to edit anything:

If someone else could replace what's in the description with that I'd be appreciative

Assignee

Unassigned

Reporter

Ian Simpson

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major