You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by "Nicolas Muller (JIRA)" <no...@atlassian.com> on 2007/07/31 12:43:24 UTC

[Roller-JIRA] Commented: (ROL-1510) Priority and Weight do not sort the bookmarks

    [ http://opensource.atlassian.com/projects/roller/browse/ROL-1510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_13958 ] 

Nicolas Muller commented on ROL-1510:
-------------------------------------

The correction is to modify the order-by for Hibernate. 
Previously the order-by is only to 'name'. In fact we have to change it for priority, weight, name.
So for the same priority, the sort is done with weight then the name.

/** 
     * @roller.wrapPojoMethod type="pojo-collection" class="org.apache.roller.pojos.BookmarkData"
     *
     * @ejb:persistent-field
     * 
     * @hibernate.set lazy="true" order-by="priority, weight, name" inverse="true" cascade="all-delete-orphan" 
     * @hibernate.collection-key column="folderid" 
     * @hibernate.collection-one-to-many class="org.apache.roller.pojos.BookmarkData"
     */
    public Set getBookmarks()    
    {
        return this.bookmarks;
    }

Thank you The Roller Team !!!!!


> Priority and Weight do not sort the bookmarks
> ---------------------------------------------
>
>                 Key: ROL-1510
>                 URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1510
>             Project: Roller
>          Issue Type: Bug
>          Components: Bookmark Management
>    Affects Versions: 3.0, 3.1
>         Environment: all
>            Reporter: Nicolas Muller
>            Assignee: Roller Unassigned
>
> Priority and Weight do not sort the bookmarks.
> We can put any values in the fields (priority and bookmark) but the sort is never done.
> Therefore the data are in the database.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira