add a ProcessLaterException to fix refs in @OrderBy

This commit is contained in:
Gavin King 2024-03-15 01:19:51 +01:00
parent fbebc65f0a
commit e3f069a5cd
1 changed files with 3 additions and 0 deletions

View File

@ -1096,6 +1096,9 @@ public class AnnotationMetaEntity extends AnnotationMeta {
private OrderBy orderByExpression(AnnotationMirror orderBy, TypeElement entityType, ExecutableElement method) {
final String fieldName = (String) castNonNull( getAnnotationValue(orderBy, "value") );
if ( fieldName.equals("<error>") ) {
throw new ProcessLaterException();
}
final Boolean descendingOrNull = (Boolean) getAnnotationValue(orderBy, "descending");
final Boolean ignoreCaseOrNull = (Boolean) getAnnotationValue(orderBy, "ignoreCase");
final boolean descending = descendingOrNull != null && descendingOrNull;