Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0038442 | Openbravo ERP | A. Platform | public | 2018-04-25 09:19 | 2018-05-09 19:29 |
|
Reporter | caristu | |
Assigned To | caristu | |
Priority | urgent | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR18Q3 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0038442: Do not use positional query parameters with Query |
Description | Legacy-style query parameters ('?') are no longer supported in Hibernate 5.3[1].
Therefore, queries generated with Query class using such kind of parameters are not working anymore starting from that Hibernate version. This issue affects to the methods using an int that determines the parameter position:
- setParameter(int, Object)
- setString(int, String)
- setInteger(int, int)
- setDate(int, Date)
- etc
Named parameters should be used instead.
[1] https://hibernate.atlassian.net/browse/HHH-12101 [^] |
Steps To Reproduce | In description |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0038382 | | closed | caristu | Deprecate usage of positional query parameters in OBQuery | related to | feature request | 0037064 | | closed | caristu | upgrade hibernate to 5.3.2 | related to | defect | 0038445 | 3.0PR18Q3 | closed | jarmendariz | Do not use positional query parameters with Query (Retail) | related to | defect | 0038446 | 3.0PR18Q3 | closed | jarmendariz | Do not use positional query parameters with Query (Modules) |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-04-25 09:19 | caristu | New Issue | |
2018-04-25 09:19 | caristu | Assigned To | => caristu |
2018-04-25 09:19 | caristu | Modules | => Core |
2018-04-25 09:19 | caristu | Triggers an Emergency Pack | => No |
2018-04-25 09:19 | caristu | Issue generated from | 0038382 |
2018-04-25 09:20 | caristu | Relationship added | related to 0038382 |
2018-04-25 10:10 | caristu | Description Updated | bug_revision_view_page.php?rev_id=17055#r17055 |
2018-04-25 10:10 | caristu | Description Updated | bug_revision_view_page.php?rev_id=17056#r17056 |
2018-04-25 10:11 | hgbot | Checkin | |
2018-04-25 10:11 | hgbot | Note Added: 0104068 | |
2018-04-25 10:11 | hgbot | Status | new => resolved |
2018-04-25 10:11 | hgbot | Resolution | open => fixed |
2018-04-25 10:11 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/582660de04fd0d217fed8bd4fdf5e6c9a69cbfe2 [^] |
2018-04-25 10:11 | hgbot | Checkin | |
2018-04-25 10:11 | hgbot | Note Added: 0104069 | |
2018-04-25 10:11 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/582660de04fd0d217fed8bd4fdf5e6c9a69cbfe2 [^] => http://code.openbravo.com/erp/devel/pi/rev/c5d8fbd7e953259aa3bab391b2931d6a9436939e [^] |
2018-04-25 10:15 | hgbot | Checkin | |
2018-04-25 10:15 | hgbot | Note Added: 0104070 | |
2018-04-25 10:16 | caristu | Description Updated | bug_revision_view_page.php?rev_id=17057#r17057 |
2018-04-25 10:22 | caristu | Review Assigned To | => alostale |
2018-04-25 13:21 | caristu | Issue cloned | 0038445 |
2018-04-25 13:21 | caristu | Relationship added | related to 0038445 |
2018-04-25 13:22 | caristu | Issue cloned | 0038446 |
2018-04-25 13:22 | caristu | Relationship added | related to 0038446 |
2018-04-27 13:24 | alostale | Relationship added | related to 0037064 |
2018-04-27 13:25 | alostale | Note Added: 0104160 | |
2018-04-27 13:25 | alostale | Status | resolved => closed |
2018-04-27 13:25 | alostale | Fixed in Version | => 3.0PR18Q3 |
2018-05-09 19:29 | hudsonbot | Checkin | |
2018-05-09 19:29 | hudsonbot | Note Added: 0104393 | |
2018-05-09 19:29 | hudsonbot | Checkin | |
2018-05-09 19:29 | hudsonbot | Note Added: 0104394 | |
2018-05-09 19:29 | hudsonbot | Checkin | |
2018-05-09 19:29 | hudsonbot | Note Added: 0104395 | |
Notes |
|
(0104068)
|
hgbot
|
2018-04-25 10:11
|
|
Repository: erp/devel/pi
Changeset: 582660de04fd0d217fed8bd4fdf5e6c9a69cbfe2
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Apr 25 09:49:14 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/582660de04fd0d217fed8bd4fdf5e6c9a69cbfe2 [^]
fixes issue 38442: replace setParameter(int, Object) with setParameter(String, Object)
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
M modules/org.openbravo.financial.paymentreport/src/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReportDao.java
M src-test/src/org/openbravo/test/dal/DalComplexQueryTestOrderLine.java
M src/org/openbravo/base/structure/BaseOBObject.java
M src/org/openbravo/erpCommon/utility/DimensionDisplayUtility.java
---
|
|
|
(0104069)
|
hgbot
|
2018-04-25 10:11
|
|
Repository: erp/devel/pi
Changeset: c5d8fbd7e953259aa3bab391b2931d6a9436939e
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Apr 25 10:06:27 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c5d8fbd7e953259aa3bab391b2931d6a9436939e [^]
fixes issue 38442: replace setString(int, String) with setParameter(String, Object)
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/TransactionsDao.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/businesslogic/CloneOrderActionHandler.java
M modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceProperty.java
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServlet.java
M src-test/src/org/openbravo/test/dal/IssuesTest.java
M src/org/openbravo/erpCommon/ad_process/assets/AssetLinearDepreciationMethodProcess.java
M src/org/openbravo/materialmgmt/InventoryCountProcess.java
---
|
|
|
(0104070)
|
hgbot
|
2018-04-25 10:15
|
|
Repository: erp/devel/pi
Changeset: b83da0b5cd1b8030eb1b3b5ab2176f7c299551a4
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Apr 25 10:15:44 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b83da0b5cd1b8030eb1b3b5ab2176f7c299551a4 [^]
related to issue 38442: fix typo
---
M modules/org.openbravo.financial.paymentreport/src/org/openbravo/financial/paymentreport/erpCommon/ad_reports/PaymentReportDao.java
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|