public static Specification<JpaTarget> hasTargetUpdateStatus(final Collection<TargetUpdateStatus> updateStatus) {
        return (targetRoot, query, cb) -> targetRoot.get(JpaTarget_.updateStatus).in(updateStatus);
    }
public static Specification < JpaTarget > hasTargetUpdateStatus ( final Collection < TargetUpdateStatus > updateStatus ) { return ( targetRoot , query , cb ) -> targetRoot . get ( JpaTarget_ . updateStatus ) . in ( updateStatus ) ; }
{@link Specification} for retrieving {@link Target}s by "equal to given
{@link TargetUpdateStatus}".

@param updateStatus
to be filtered on

@return the {@link Target} {@link Specification}