* @throws ServiceException
*/
@SuppressWarnings("unchecked")
protected List<Entity> selectAll() throws ServiceException {
try {
CustomQuery customQuery = new CustomQuery(kindOfEntity);
return (List<Entity>) customQuery.eq(DELETED, false)
.desc(CREATE_DATE).asList();
} catch (Exception e) {
throw new ServiceException(e);
}
}