Package top.tangyh.basic.base.controller
Class SuperSimpleController<S extends SuperService<Id,Entity>,Id extends Serializable,Entity extends SuperEntity<Id>>
java.lang.Object
top.tangyh.basic.base.controller.SuperSimpleController<S,Id,Entity>
- Type Parameters:
Id- 主键S- ServiceEntity- 实体
- All Implemented Interfaces:
BaseController<Id,Entity>
- Direct Known Subclasses:
SuperController,SuperReadController,SuperWriteController
public abstract class SuperSimpleController<S extends SuperService<Id,Entity>,Id extends Serializable,Entity extends SuperEntity<Id>>
extends Object
implements BaseController<Id,Entity>
简单的实现了BaseController,为了获取注入 Service 和 实体类型
基类该类后,没有任何方法。 可以让业务Controller继承 SuperSimpleController 后,按需实现 *Controller 接口
- Author:
- zuihou
-
Field Details
-
superService
-
entityClass
-
-
Constructor Details
-
SuperSimpleController
public SuperSimpleController()
-
-
Method Details
-
currentModelClass
-
getEntityClass
Description copied from interface:BaseController获取实体的类型- Specified by:
getEntityClassin interfaceBaseController<S extends SuperService<Id,Entity>, Id extends Serializable> - Returns:
- 实体的类型
-
getSuperService
Description copied from interface:BaseController获取Service- Specified by:
getSuperServicein interfaceBaseController<S extends SuperService<Id,Entity>, Id extends Serializable> - Returns:
- Service
-