javax.persistence.Cacheable

Here are the examples of the java api class javax.persistence.Cacheable taken from open source projects.

1. CacheableAnnotationProcessor#process()

Project: Kundera
File: CacheableAnnotationProcessor.java
/*
     * (non-Javadoc)
     * 
     * @see
     * com.impetus.kundera.metadata.MetadataProcessor#process(java.lang.Class,
     * com.impetus.kundera.metadata.model.EntityMetadata)
     */
@Override
public final void process(final Class<?> entityClass, EntityMetadata metadata) {
    Cacheable cacheable = (Cacheable) entityClass.getAnnotation(Cacheable.class);
    if (null != cacheable) {
        metadata.setCacheable(cacheable.value());
    }
}