org.eclipse.persistence.annotations.CacheInterceptor [message #1064091] |
Mon, 17 June 2013 15:03 |
P Soma Messages: 9 Registered: May 2013 |
Junior Member |
|
|
CacheInterceptor annotation does not supporting to inheritance. Currently, forcing us to configure CacheInterceptor annotation on each entity as below.
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02891 seconds