Openbravo Issue Tracking System - Openbravo ERP |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0012143 | Openbravo ERP | A. Platform | public | 2010-02-04 20:54 | 2010-03-10 18:29 |
|
| Reporter | shuehner | |
| Assigned To | shuehner | |
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | pi | |
| Target Version | | Fixed in Version | 2.50MP12 | |
| Merge Request Status | |
| Review Assigned To | |
| OBNetwork customer | No |
| Web browser | |
| Modules | Core |
| Support ticket | |
| Regression level | |
| Regression date | |
| Regression introduced in release | |
| Regression introduced by commit | |
| Triggers an Emergency Pack | No |
|
| Summary | 0012143: OBQuery class should add convenience method uniqueResult similar to the OBCriteria class |
| Description | The OBCriteria class offers a uniqueResult method to fetch a single result which is easier than .list().get(0).
The OBQuery class should add the same method. |
| Steps To Reproduce | |
| Proposed Solution | Add a typed
E uniqueResult() method, which returns a single result with the type of the query it was created with.
To support more generic untyped queries (i.e. for projections) add a second method:
Object uniqueResultObject().
|
| Additional Information | |
| Tags | No tags attached. |
| Relationships | |
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2010-02-04 20:54 | shuehner | New Issue | |
| 2010-02-04 20:54 | shuehner | Assigned To | => shuehner |
| 2010-02-04 20:54 | shuehner | OBNetwork customer | => No |
| 2010-02-04 21:07 | hgbot | Checkin | |
| 2010-02-04 21:07 | hgbot | Note Added: 0023975 | |
| 2010-02-04 21:07 | hgbot | Status | new => resolved |
| 2010-02-04 21:07 | hgbot | Resolution | open => fixed |
| 2010-02-04 21:07 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/ff77f743663bc9a8f5c5bb523c371aa380e435e6 [^] |
| 2010-02-10 12:59 | mtaal | Note Added: 0024092 | |
| 2010-02-10 12:59 | mtaal | Status | resolved => closed |
| 2010-02-10 12:59 | mtaal | Fixed in Version | => 2.50MP12 |
| 2010-02-11 00:00 | anonymous | sf_bug_id | 0 => |
| 2010-02-15 17:36 | hudsonbot | Checkin | |
| 2010-02-15 17:36 | hudsonbot | Note Added: 0024296 | |
| 2010-03-10 18:29 | anonymous | sf_bug_id | => 2968014 |