@Override
public ListResponse<AlertDto> exec(BaseRequest<BaseDto> request, EntityManager em) throws Exception {
// Initializing Entity Manager
OSCEntityManager<Alert> emgr = new OSCEntityManager<Alert>(Alert.class, em, this.txBroadcastUtil);
List<AlertDto> alertList = new ArrayList<AlertDto>();
for (Alert alert : emgr.listAll(false, "createdTimestamp")) {
AlertDto dto = new AlertDto();
AlertEntityMgr.fromEntity(alert, dto);
alertList.add(dto);
}
ListResponse<AlertDto> response = new ListResponse<AlertDto>();
response.setList(alertList);
return response;
}
ListAlertService.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:osc-core
作者:
评论列表
文章目录