190311 JPA Sorting
參考以下網頁
https://www.baeldung.com/jpa-sort
String jql ="Select f from Foo as f order by f.id";
如果 Order By 的欄位屬於 Primary Key(不止一欄位),
就要寫成
String jql ="Select f from Foo as f order by f.[primaryKey].id";
https://www.baeldung.com/jpa-sort
String jql ="Select f from Foo as f order by f.id";
如果 Order By 的欄位屬於 Primary Key(不止一欄位),
就要寫成
String jql ="Select f from Foo as f order by f.[primaryKey].id";
留言
張貼留言