According to the docs, using this annotation config should exclude the annotated type from queries using superclasses of its hierarchy but I'm unable to replicate this behavior.