2526272829303132
public void deleteFeedUserById(Integer id) throws FeedUserException { try{ FeedUser feedUser = (FeedUser) baseDao.findById(FeedUser.class, id); baseDao.delete(feedUser); } catch (Exception e) { throw new FeedUserException("FeedUser删除异常"); } }
3839404142434445
@Transactional public void saveFeedUser(FeedUser feedUser) throws FeedUserException { try { baseDao.save(feedUser); } catch (Exception e) { throw new FeedUserException("FeedUser保存异常"); } }
5152535455565758
@Transactional public FeedUser findFeedUserById(Integer id) throws FeedUserException { try { return (FeedUser) baseDao.findById(FeedUser.class, id); } catch (Exception e) { throw new FeedUserException("FeedUser按ID查询异常"); } }
6970717273747576
Object[] values = CommonDaoUtil.commonQuery(map); hql += values[0].toString(); // Object[]需要进行强制转换. return baseDao.findPage(start, limit, hql, (Object[]) values[1]); } catch (Exception e) { throw new FeedUserException("FeedUser分页异常"); } }
8788899091929394
Object[] values = CommonDaoUtil.commonQuery(map); hql += values[0].toString(); // Object[]需要进行强制转换. return baseDao.find(hql, (Object[]) values[1]); } catch (Exception e) { throw new FeedUserException("查询FeedUser全部异常"); } }