Grails JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile
MongoDB Morphia Plugin
  • MongoDB Morphia Plugin
  • GPGORMMONGODB-15

Multi Update Parameter

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Labels:
    None
  • Patch Submitted:
    Yes
  • Patch attached:
    Yes

Description

Multi Parameter in Update Method

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    multi-update-params.patch
    01/Jul/11 5:46 AM
    2 kB
    Hasan Ozgan

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hasan Ozgan made changes - 01/Jul/11 5:46 AM
Field Original Value New Value
Attachment multi-update-params.patch [ 16609 ]
Hasan Ozgan made changes - 01/Jul/11 5:50 AM
Attachment UrbanVille Technical Design Document.mm [ 16608 ]
Hide
Permalink
Juri Kuehn added a comment - 03/Jul/11 3:13 PM

Hi Hasan, thanks for your commit. I applied the code and wrote tests for it. It turned out there was a bug in morphia, update should always update all matched instances: http://code.google.com/p/morphia/issues/detail?id=247

I added an updateFirst method in case only one entity should be updated (see also morphia api: http://morphia.googlecode.com/svn/site/morphia/apidocs/com/google/code/morphia/Datastore.html#updateFirst%28com.google.code.morphia.query.Query,%20com.google.code.morphia.query.UpdateOperations,%20boolean,%20com.mongodb.WriteConcern%29)

Show
Juri Kuehn added a comment - 03/Jul/11 3:13 PM Hi Hasan, thanks for your commit. I applied the code and wrote tests for it. It turned out there was a bug in morphia, update should always update all matched instances: http://code.google.com/p/morphia/issues/detail?id=247 I added an updateFirst method in case only one entity should be updated (see also morphia api: http://morphia.googlecode.com/svn/site/morphia/apidocs/com/google/code/morphia/Datastore.html#updateFirst%28com.google.code.morphia.query.Query,%20com.google.code.morphia.query.UpdateOperations,%20boolean,%20com.mongodb.WriteConcern%29 )
Juri Kuehn made changes - 03/Jul/11 3:13 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]

People

  • Assignee:
    Juri Kuehn
    Reporter:
    Hasan Ozgan
Vote (0)
Watch (0)

Dates

  • Created:
    01/Jul/11 5:46 AM
    Updated:
    03/Jul/11 3:13 PM
    Resolved:
    03/Jul/11 3:13 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.2.1#813-sha1:277a546)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Grails project. Try JIRA - bug tracking software for your team.