Class AbstractReadableController<E extends cn.herodotus.engine.core.definition.domain.BaseEntity,ID extends Serializable,S extends cn.herodotus.engine.data.core.service.BasePageService<E,ID>>
java.lang.Object
cn.herodotus.engine.web.api.servlet.AbstractReadableController<E,ID,S>
- Type Parameters:
E- 实体ID- 实体 IDS- Service
- All Implemented Interfaces:
cn.herodotus.engine.core.definition.domain.BaseDomain,cn.herodotus.engine.core.definition.domain.Pagination,BindingController<E,,ID, S> PageController<E,,ID, S> PaginationController,Controller,Serializable
- Direct Known Subclasses:
AbstractJpaReadableController,AbstractWriteableController
public abstract class AbstractReadableController<E extends cn.herodotus.engine.core.definition.domain.BaseEntity,ID extends Serializable,S extends cn.herodotus.engine.data.core.service.BasePageService<E,ID>>
extends Object
implements PageController<E,ID,S>
Description: 通用只读接口定义
JPA 支持视图(View) 的映射,视图无法进行增、删、改操作,所以将度操作单独提取出来,以支持视图同时避免增、删、改误操作
如果继承该类将会自动创建相关接口并生成权限数据,所以当前仅提供基础分页接口,以避免生成不必要的接口。
- Author:
- : gengwei.zheng
- See Also:
- Date:
- : 2025/3/29 23:16
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cn.herodotus.engine.web.api.servlet.BindingController
delete, findAll, findById, getService, saveMethods inherited from interface cn.herodotus.engine.web.core.definition.Controller
result, result, result, result, result, result, resultMethods inherited from interface cn.herodotus.engine.web.api.servlet.PageController
findByPage, findByPageMethods inherited from interface cn.herodotus.engine.core.definition.domain.Pagination
with, withMethods inherited from interface cn.herodotus.engine.web.api.servlet.PaginationController
fromPage, fromSlice, resultFromPage, resultFromSlice
-
Constructor Details
-
AbstractReadableController
public AbstractReadableController()
-
-
Method Details
-
findByPage
@AccessLimited @GetMapping public cn.herodotus.engine.core.definition.domain.Result<Map<String,Object>> findByPage(@Validated Pager pager)
-