|
@@ -39,7 +39,7 @@ import java.util.List;
|
|
*/
|
|
*/
|
|
@Service("oAuth2ServerConfigService")
|
|
@Service("oAuth2ServerConfigService")
|
|
@CacheConfig(cacheNames = "oauth2-server-config")
|
|
@CacheConfig(cacheNames = "oauth2-server-config")
|
|
-public class SimpleOAuth2ServerConfigService extends EnableCacheGenericEntityService<OAuth2ServerConfigEntity, String>
|
|
|
|
|
|
+public class SimpleOAuth2ServerConfigService extends GenericEntityService<OAuth2ServerConfigEntity, String>
|
|
implements OAuth2ServerConfigService, OAuth2ServerConfigRepository {
|
|
implements OAuth2ServerConfigService, OAuth2ServerConfigRepository {
|
|
@Autowired
|
|
@Autowired
|
|
private OAuth2ServerConfigDao oAuth2ServerConfigDao;
|
|
private OAuth2ServerConfigDao oAuth2ServerConfigDao;
|
|
@@ -55,7 +55,7 @@ public class SimpleOAuth2ServerConfigService extends EnableCacheGenericEntitySer
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @Cacheable(key = "'id:'+#id")
|
|
|
|
|
|
+ @Cacheable(key = "'conf-id:'+#id")
|
|
public OAuth2ServerConfig findById(String id) {
|
|
public OAuth2ServerConfig findById(String id) {
|
|
OAuth2ServerConfigEntity entity = selectByPk(id);
|
|
OAuth2ServerConfigEntity entity = selectByPk(id);
|
|
if (null == entity) {
|
|
if (null == entity) {
|
|
@@ -65,13 +65,13 @@ public class SimpleOAuth2ServerConfigService extends EnableCacheGenericEntitySer
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @CacheEvict(key = "'id:'+#id")
|
|
|
|
|
|
+ @CacheEvict(key = "'conf-id:'+#id")
|
|
public int updateByPk(String id, OAuth2ServerConfigEntity entity) {
|
|
public int updateByPk(String id, OAuth2ServerConfigEntity entity) {
|
|
return super.updateByPk(id, entity);
|
|
return super.updateByPk(id, entity);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @CacheEvict(key = "'id:'+#id")
|
|
|
|
|
|
+ @CacheEvict(key = "'conf-id:'+#id")
|
|
public int deleteByPk(String id) {
|
|
public int deleteByPk(String id) {
|
|
return super.deleteByPk(id);
|
|
return super.deleteByPk(id);
|
|
}
|
|
}
|
|
@@ -83,13 +83,13 @@ public class SimpleOAuth2ServerConfigService extends EnableCacheGenericEntitySer
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @CacheEvict(key = "'id:'+#result")
|
|
|
|
|
|
+ @CacheEvict(key = "'conf-id:'+#result")
|
|
public String saveOrUpdate(OAuth2ServerConfigEntity entity) {
|
|
public String saveOrUpdate(OAuth2ServerConfigEntity entity) {
|
|
return super.saveOrUpdate(entity);
|
|
return super.saveOrUpdate(entity);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @CacheEvict(key = "'id:'+#result.id")
|
|
|
|
|
|
+ @CacheEvict(key = "'conf-id:'+#result.id")
|
|
public OAuth2ServerConfig save(OAuth2ServerConfig config) {
|
|
public OAuth2ServerConfig save(OAuth2ServerConfig config) {
|
|
OAuth2ServerConfigEntity entity = entityFactory.newInstance(OAuth2ServerConfigEntity.class, config);
|
|
OAuth2ServerConfigEntity entity = entityFactory.newInstance(OAuth2ServerConfigEntity.class, config);
|
|
saveOrUpdate(entity);
|
|
saveOrUpdate(entity);
|