com.jdon.annotation.Model Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdonframework Show documentation
Show all versions of jdonframework Show documentation
JdonFramework is a java framework that you can use to build your Domain Driven Design + CQRS + EventSource applications with asynchronous concurrency and higher throughput.
package com.jdon.annotation;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Domain Model should normal live in memory not in database. so cache in memory
* is very important for domain model life cycle.
*
*
* @see com.jdon.controller.model.ModelIF
* @author banQ
*
*/
@Target(TYPE)
@Retention(RUNTIME)
@Documented
public @interface Model {
/**
* disable from version 6.5
*
* @return
*/
boolean isCacheable() default true;
/**
* disable from version 6.5
*
* @return
*/
boolean isModified() default false;
}