i have a withCriteria with createAlias("xRecords", "x", CriteriaSpecification.LEFT_JOIN)
createAlias("xRecords", "x", CriteriaSpecification.LEFT_JOIN)
When i try to do sqlRestriction("x.y > 1") I get the error:
sqlRestriction("x.y > 1")
Unknown column ‘x.y’ in ‘where clause’
y is a column in xRecords.
y
xRecords
What am i missing?
2.1m questions
2.1m answers
60 comments
57.0k users