Do you use the sleep filter directly, or are you expanding the sleep filter for your own purposes? Annotations are not inherited by default in Java, although if you wrote the annotation yourself, and I assume that hibernation did not do this in your annotations, you can specify @Inherited meta information in your annotation to make it inherit, However, this works for type annotations only. In addition, some people write an annotation manager to simulate complete inheritance. You could do something like this, either expand the sleep mode mechanism, or write a preprocessor that adds annotations where they should be inherited.
source
share