Allow the use of HQL in discriminator formula's

Description

I created a custom SQL function called "bitwiseAnd" for the dialects of both SQLServer and Oracle10g, since we support both databases. I was hoping to use this in my DiscriminatorFormula annotation, however it expects native SQL, which would force me to facilitate the use of one dialect only. Would it be at all possible to use HQL along with custom functions in the discriminator formula?

Environment

None

Assignee

Unassigned

Reporter

Rowan Massey

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
Configure