committed by
Christoph Strobl
parent
e9128743b6
commit
07d2b8c015
@@ -29,33 +29,29 @@ import org.springframework.data.annotation.Persistent;
|
||||
* entity should reside in. If present the value will be picked up for resolving the keyspace. The {@link #value()}
|
||||
* attribute supports SpEL expressions to dynamically resolve the keyspace based on a per-operation basis.
|
||||
*
|
||||
* <pre>
|
||||
* <code>
|
||||
* <pre class="code">
|
||||
* @Persistent
|
||||
* @Retention(RetentionPolicy.RUNTIME)
|
||||
* @Target({ ElementType.TYPE })
|
||||
* static @interface CacheCentricAnnotation {
|
||||
*
|
||||
* @AliasFor(annotation = KeySpace.class, attribute = "value")
|
||||
* String cacheRegion() default "";
|
||||
* @AliasFor(annotation = KeySpace.class, attribute = "value")
|
||||
* String cacheRegion() default "";
|
||||
* }
|
||||
*
|
||||
* @CacheCentricAnnotation(cacheRegion = "customers")
|
||||
* class Customer {
|
||||
* //...
|
||||
* // ...
|
||||
* }
|
||||
* </code>
|
||||
* </pre>
|
||||
*
|
||||
* Can also be directly used on types to indicate the keyspace.
|
||||
*
|
||||
* <pre>
|
||||
* <code>
|
||||
* <pre class="code">
|
||||
* @KeySpace("persons")
|
||||
* public class Foo {
|
||||
*
|
||||
* }
|
||||
* </code>
|
||||
* </pre>
|
||||
*
|
||||
* @author Christoph Strobl
|
||||
|
||||
Reference in New Issue
Block a user