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:39:25 UTC

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

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.1, 3.0
         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

        

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

Posted by "Nicolas Muller (JIRA)" <no...@atlassian.com>.
    [ 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

        

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

Posted by "David Johnson (JIRA)" <no...@atlassian.com>.
     [ http://opensource.atlassian.com/projects/roller/browse/ROL-1510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Johnson resolved ROL-1510.
--------------------------------

    Resolution: Fixed

URL: http://svn.apache.org/viewvc?view=rev&rev=564377

Fix for ROL-1510 this bug in 3.1 (Hibernate query fix from Nicolas Muller)

Which is really the same thing as this ROL-548 much older bug (fixed in 4.0 viia UI side sort):


> 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: David Johnson
>             Fix For: 3.1.1
>
>
> 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

        

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

Posted by "David Johnson (JIRA)" <no...@atlassian.com>.
     [ http://opensource.atlassian.com/projects/roller/browse/ROL-1510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Johnson updated ROL-1510:
-------------------------------

         Assignee: David Johnson  (was: Roller Unassigned)
    Fix Version/s: 3.1.1

> 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: David Johnson
>             Fix For: 3.1.1
>
>
> 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