package me.chyxion.tigon.mybatis;

import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Specifies whether an entity should be cached if caching is enabled
 * @author Shaun Chyxion <br>
 * chyxion@163.com <br>
 * Mar 13, 2017 11:10:30
 */
@Target(TYPE)
@Retention(RUNTIME)
public @interface Cacheable {
    /**
     * (Optional) Whether or not the entity should be cached.
     */
    boolean value() default true;
}
