I have an interface annotated with @Transactional. Then concrete classes implementing that interface. Because of the annotation spring creates a proxy for every class implementing the interface.
My problem is that at container boot-up time I am checking if some of the classes are annotated with a specific user custom type annotation (if not I am throwing an exception). It seems that getAnnotation() method on the proxy returns null.
Is the proxy not supposed to contain all the attributes(e.g annotations) associated with the proxied class?