public class MappedClassesOnlyHierarchyScanStrategy extends Object implements HierarchyScanStrategy
HierarchyScanStrategythat excludes all ancestors of mapped classes, thus restricting class scan to the mapped classes themselves.
This strategy can be used instead of
|Constructor and Description|
|Modifier and Type||Method and Description|
Computes the ancestors of the given base class, optionally filtering out any ancestor that should not be scanned.
public List<Class<?>> filterClassHierarchy(Class<?> mappedClass)
mappedClassin the returned list.
mappedClass- The mapped class; this is necessarily a class annotated with either
mappedClassitself and its ancestors, ordered from the lowest (closest to
mappedClass) to the highest (or farthest from
Copyright © 2012–2018. All rights reserved.