修改类名

This commit is contained in:
zhouhao
2017-07-25 14:34:53 +08:00
parent 6953c07c18
commit e27e09f377
2 changed files with 9 additions and 4 deletions

View File

@@ -7,11 +7,16 @@ import org.springframework.cache.annotation.Cacheable;
import java.util.List;
/**
* TODO 完成注释
* 启用缓冲的通用实体曾删改查服务,继承此类
* 在类上注解{@link org.springframework.cache.annotation.CacheConfig}即可
*
* @author zhouhao
* @see org.springframework.cache.annotation.CacheConfig
* @see Cacheable
* @see CacheEvict
* @since 3.0
*/
public abstract class EnableCacheGernericEntityService<E extends GenericEntity<PK>, PK> extends GenericEntityService<E, PK> {
public abstract class EnableCacheGenericEntityService<E extends GenericEntity<PK>, PK> extends GenericEntityService<E, PK> {
@Override
@Cacheable(key = "'ids:'+#id.hashCode()", condition = "#id!=null")

View File

@@ -30,7 +30,7 @@ import org.hswebframework.web.organizational.authorization.TreeNode;
import org.hswebframework.web.organizational.authorization.simple.SimplePersonnel;
import org.hswebframework.web.organizational.authorization.simple.SimplePersonnelAuthorization;
import org.hswebframework.web.service.DefaultDSLQueryService;
import org.hswebframework.web.service.EnableCacheGernericEntityService;
import org.hswebframework.web.service.EnableCacheGenericEntityService;
import org.hswebframework.web.service.authorization.AuthorizationSettingTypeSupplier;
import org.hswebframework.web.service.authorization.UserService;
import org.hswebframework.web.service.organizational.PersonService;
@@ -56,7 +56,7 @@ import static org.springframework.util.StringUtils.isEmpty;
*/
@Service("personService")
@CacheConfig(cacheNames = "person")
public class SimplePersonService extends EnableCacheGernericEntityService<PersonEntity, String>
public class SimplePersonService extends EnableCacheGenericEntityService<PersonEntity, String>
implements PersonService, PersonnelAuthorizationManager, AuthorizationSettingTypeSupplier {
private static String SETTING_TYPE_PERSON = "person";