1
我想通過某些參數來篩選我的列表功能,望着CRUD.java controller:玩!框架,定製CRUD list()函數
List<Model> objects = type.findPage(page, search, searchFields, orderBy, order, (String) request.args.get("where"));
Long count = type.count(search, searchFields, (String) request.args.get("where"));
Long totalCount = type.count(null, null, (String) request.args.get("where"));
這似乎是基於查詢字符串,其中參數過濾,但我找不到什麼格式的where子句應該在哪裏,或者如何使用它?
用戶模型實例看到此有用的答案:[http://stackoverflow.com/questions/7827427/how-to-override-the-crud-list-function-play-framework][1] [1]:HTTP ://stackoverflow.com/questions/7827427/how-to-override-the-crud -list-function-play-framework – Lucho
所以......這應該被關閉爲重複還是不重複? – ripper234
是的,你如何關閉一個問題。 – Martinffx