helper.isInSelect = false;
appendExpression(helper, filter, ec);
helper.isInSelect = oldIsInSelect;
helper.getBuilder().append(")");
} else {
JoinFilter joinFilter = PersistenceUtils.getMemberAnnotation(ammd.getMemberRepresented(), JoinFilter.class);
if (joinFilter != null) {
if (joinFilter.alias().length() > 0) {
helper.getBuilder().append(String.format(" %s", joinFilter.alias()));
}
if (joinFilter.value().length() > 0) {
helper.getBuilder().append(" where (").append(joinFilter.value()).append(")");
}
}
}
if (ammd.getOrderMetaData() != null && ammd.getOrderMetaData().getOrdering() != null
&& !ammd.getOrderMetaData().getOrdering().equals("#PK")) {