嗨boyz嗨girsl我有一個問題。我有一個代碼:玩框架2.4 ebean [PersistenceException:Property []找不到models.SearchContent]
公共靜態列表createPosts(PagedList searchContents){
List<Post> posts = new ArrayList<Post>();
List<SearchContent> searchContentsList = new ArrayList<SearchContent>();
searchContentsList = searchContents.getList();
PaggedList發生器:
PagedList<SearchContent> list = Ebean.find(SearchContent.class)
.setRawSql(rawSql)
.findPagedList(pageNumber, resultsToPage);
而且我有一個例外:
[PersistenceException: Property [] not found on models.SearchContent]
在這line:
searchContentsList = searchContents.getList();
爲什麼我得到一個錯誤?