Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsorg.eclipse.persistence.annotations.CacheInterceptor
https://www.eclipse.org/forums/index.php/mv/msg/489152/1064091/#msg_1064091
Example: @CacheInterceptor(value = JcCacheInterceptor.class)
public class Sample1 extends JcBaseBO{
}
@CacheInterceptor(value = JabCacheInterceptor.class)public class Sample2 extends JcBaseBO{
}
But we would like to configure the CacheInterceptor annotation in the base class as below in JcBaseBO and then all the subclass (i.e. Sample1 & Sample2) of the JcBaseBO class should automatically inherite the CacheInterceptor functionality.
Expected: @CacheInterceptor(value = JcCacheInterceptor.class)
public abstract class JcBaseBO implements Serializable {
}
public class Sample1 extends JcBaseBO{
}
public class Sample2 extends JcBaseBO{
}
So, please add the @Inherited annotation in CacheInterceptor interface as below.
@Target({TYPE})
@Retention(RUNTIME) @Inherited
public @interface CacheInterceptor {
/**
* The Class that will be used to intercept EclipseLink's cache access.
*/
Class value();
}
Created a bug for the same and you can refer from Bug 410924 link.]]>P Soma2013-06-17T15:03:16-00:00