Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 0.3.1
-
Fix Version/s: 1.2-M3
-
Component/s: Persistence
-
Labels:None
Description
I would be nice if you could specify a default sort and order for domain classes, like:
class NewsArticle { static defaultSort = 'publishedAt' static defaultOrder = 'desc' String title Date publishedAt .... }
Attachments
-
$i18n.getText("admin.common.words.hide")
- books.zip
- 03/Feb/09 2:42 PM
- 149 kB
- Dennis Carroll
-
- books/.classpath 6 kB
- books/.project 0.5 kB
- books/.../org.codehaus.groovy.eclipse.preferences.prefs 0.1 kB
- books/application.properties 0.1 kB
- books/books.launch 2 kB
- books/books.tmproj 2 kB
- books/build.xml 1 kB
- books/grails-app/conf/BootStrap.groovy 0.2 kB
- books/grails-app/conf/Config.groovy 3 kB
- books/grails-app/conf/DataSource.groovy 1 kB
- books/grails-app/.../spring/resources.groovy 0.0 kB
- books/grails-app/conf/UrlMappings.groovy 0.2 kB
- books/grails-app/.../AuthorController.groovy 2 kB
- books/grails-app/.../BookController.groovy 2 kB
- books/grails-app/domain/Author.groovy 0.2 kB
- books/grails-app/domain/Book.groovy 0.2 kB
- books/grails-app/.../messages.properties 2 kB
- books/grails-app/.../messages_de.properties 3 kB
- books/grails-app/.../messages_es.properties 3 kB
- books/grails-app/.../messages_fr.properties 2 kB
- books/grails-app/.../messages_it.properties 2 kB
- books/grails-app/.../messages_ja.properties 2 kB
- books/grails-app/.../messages_nl.properties 3 kB
- books/.../messages_pt_BR.properties 3 kB
- books/grails-app/.../messages_ru.properties 4 kB
- books/grails-app/.../messages_th.properties 5 kB
- books/.../messages_zh_CN.properties 2 kB
- books/grails-app/views/author/create.gsp 2 kB
- books/grails-app/views/author/edit.gsp 3 kB
- books/grails-app/views/author/list.gsp 2 kB
Issue Links
| This issue is duplicated by: | ||||
| GRAILS-3038 | Add support for ordering an object's collections at the SQL / DB level |
|
|
|
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
I could not get JIRA to display the attach link without cloning the issue on which I commented. The attachment has a "process.txt" in the root that document what I did to create the "books" project. I could not see where in your source the sort testing is done. I you would be so kind as to point me there perhaps I can find where I am going off track.
Thanks for the hard work,