Resolve {alias} in @Formula like Restrictions.sqlRestriction()

Description

http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#criteria-narrowing

The {alias} placeholder will be replaced by the row alias of the queried entity.

here {alias} not resolved by row alias.

Environment

None

Activity

Show:
周雁鸣
February 9, 2018, 3:11 AM

workaround, replace {alias} with "$PlaceHolder$" in org.hibernate.mapping.Formula

Vlad Mihalcea
February 9, 2018, 6:41 AM

If you already have an idea for a fix, you should send a Pull Request.

周雁鸣
February 9, 2018, 9:29 AM
Vlad Mihalcea
February 12, 2018, 4:08 PM

Applied PR upstream.

Assignee

Vlad Mihalcea

Reporter

周雁鸣

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure