When migrating legacy Criteria API code to JPA CriteriaBuilder (which is a must before upgrading to 6.0\!), one option is to write a transformer to migrate, [e.g|http://e.gh]. legacy Hibernate SimpleExpressions to a JPA predicate. Unfortunately, the getter {{org.hibernate.criterion.SimpleExpression#getOp()}} is set to protected and cannot be accessed.
Making this getter public would be beneficial for migration of legacy Criteria API code to CriteriaBuilder as it makes life a lot easier. |
|