@SuppressWarnings("unchecked")
  public static Map<String, List<? extends SingularAttribute<?, ?>>> getPredicateMapping() {
    Map<String, List<? extends SingularAttribute<?, ?>>> mapping = new HashMap<>();

    mapping.put(AlertNoticeResourceProvider.ALERT_NOTICE_ID,
        Collections.singletonList(notificationId));

    mapping.put(AlertNoticeResourceProvider.ALERT_NOTICE_STATE,
        Collections.singletonList(notifyState));

    mapping.put(AlertNoticeResourceProvider.ALERT_NOTICE_UUID,
        Collections.singletonList(uuid));

    // AlertNotice.alertTarget.targetId = 123
    mapping.put(AlertNoticeResourceProvider.ALERT_NOTICE_TARGET_ID,
        Arrays.asList(alertTarget, AlertTargetEntity_.targetId));

    // AlertNotice.alertTarget.targetName = foo
    mapping.put(AlertNoticeResourceProvider.ALERT_NOTICE_TARGET_NAME,
        Arrays.asList(alertTarget, AlertTargetEntity_.targetName));

    // AlertNotice.alertHistory.alertId = 123
    mapping.put(AlertNoticeResourceProvider.ALERT_NOTICE_HISTORY_ID,
        Arrays.asList(alertHistory, AlertHistoryEntity_.alertId));

    // AlertNotice.alertHistory.serviceName = 123
    mapping.put(AlertNoticeResourceProvider.ALERT_NOTICE_SERVICE_NAME,
        Arrays.asList(alertHistory, AlertHistoryEntity_.serviceName));

    return mapping;
  }
Gets a mapping of between a resource provider property, like
{@link AlertNoticeResourceProvider#ALERT_NOTICE_STATE} to a metamodel
{@link SingularAttribute}.
<p/>
This is used when converting an Ambari {@link Predicate} into a JPA
{@link jakarta.persistence.criteria.Predicate} and we need a type-safe
conversion between "category/property" and JPA field names.
<p/>
Multiple {@link SingularAttribute} instances can be chained together in
order to provide an {@code entity.subEntity.field} reference.

@return
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertNoticeEntity_.java