Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0038382 | Openbravo ERP | A. Platform | public | 2018-04-16 18:20 | 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 | 0038382: Deprecate usage of positional query parameters in OBQuery |
Description | Legacy-style query parameters ('?') are no longer supported in Hibernate 5.3[1]
The OBQuery API allows the definition of this kind of parameters by using the setParameters(List)[2] method.
This method should be deprecated in order to discourage its usage before applying the Hibernate upgrade.
Named parameters should be used instead.
[1] https://hibernate.atlassian.net/browse/HHH-12101 [^]
[2] https://code.openbravo.com/erp/devel/pi/file/tip/src/org/openbravo/dal/service/OBQuery.java#l453 [^] |
Steps To Reproduce | In description |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0038146 | | closed | shuehner | Openbravo ERP | OBQuery when auto-adding client+org filter is not using bind-variables | related to | defect | 0038383 | | closed | caristu | Openbravo ERP | API Change: declare OBQuery.getParameters() method as private | related to | defect | 0038442 | | closed | caristu | Openbravo ERP | Do not use positional query parameters with Query | related to | feature request | 0037064 | | closed | caristu | Openbravo ERP | upgrade hibernate to 5.3.2 | causes | defect | 0040189 | | closed | markmm82 | Modules | Error in query when launching Match Statement |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-04-16 18:20 | caristu | New Issue | |
2018-04-16 18:20 | caristu | Assigned To | => platform |
2018-04-16 18:20 | caristu | Modules | => Core |
2018-04-16 18:20 | caristu | Triggers an Emergency Pack | => No |
2018-04-16 18:21 | caristu | Assigned To | platform => caristu |
2018-04-16 18:32 | caristu | Relationship added | related to 0038383 |
2018-04-16 18:33 | caristu | Description Updated | bug_revision_view_page.php?rev_id=17006#r17006 |
2018-04-16 18:34 | caristu | Description Updated | bug_revision_view_page.php?rev_id=17007#r17007 |
2018-04-17 14:03 | caristu | Relationship added | related to 0038146 |
2018-04-17 19:11 | caristu | Note Added: 0103947 | |
2018-04-18 09:41 | hgbot | Checkin | |
2018-04-18 09:41 | hgbot | Note Added: 0103954 | |
2018-04-18 09:41 | hgbot | Status | new => resolved |
2018-04-18 09:41 | hgbot | Resolution | open => fixed |
2018-04-18 09:41 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/b1cfd9a88be06141647c4d22aa41ec51aa3467e1 [^] |
2018-04-18 09:41 | hgbot | Checkin | |
2018-04-18 09:41 | hgbot | Note Added: 0103955 | |
2018-04-18 09:42 | hgbot | Checkin | |
2018-04-18 09:42 | hgbot | Note Added: 0103957 | |
2018-04-18 09:43 | hgbot | Checkin | |
2018-04-18 09:43 | hgbot | Note Added: 0103958 | |
2018-04-18 09:43 | hgbot | Checkin | |
2018-04-18 09:43 | hgbot | Note Added: 0103959 | |
2018-04-18 09:44 | hgbot | Checkin | |
2018-04-18 09:44 | hgbot | Note Added: 0103960 | |
2018-04-18 09:45 | hgbot | Checkin | |
2018-04-18 09:45 | hgbot | Note Added: 0103961 | |
2018-04-18 09:45 | hgbot | Checkin | |
2018-04-18 09:45 | hgbot | Note Added: 0103962 | |
2018-04-18 09:46 | caristu | Review Assigned To | => alostale |
2018-04-18 09:53 | hgbot | Checkin | |
2018-04-18 09:53 | hgbot | Note Added: 0103963 | |
2018-04-18 21:19 | hgbot | Checkin | |
2018-04-18 21:19 | hgbot | Note Added: 0103986 | |
2018-04-19 09:00 | hgbot | Checkin | |
2018-04-19 09:00 | hgbot | Note Added: 0103989 | |
2018-04-19 10:21 | hgbot | Checkin | |
2018-04-19 10:21 | hgbot | Note Added: 0103990 | |
2018-04-20 09:38 | alostale | Note Added: 0104004 | |
2018-04-20 09:38 | alostale | Status | resolved => closed |
2018-04-20 09:39 | alostale | Fixed in Version | => 3.0PR18Q3 |
2018-04-25 09:19 | caristu | Issue cloned | 0038442 |
2018-04-25 09:20 | caristu | Relationship added | related to 0038442 |
2018-04-27 13:24 | alostale | Relationship added | related to 0037064 |
2018-05-09 19:29 | hudsonbot | Checkin | |
2018-05-09 19:29 | hudsonbot | Note Added: 0104385 | |
2018-05-09 19:29 | hudsonbot | Checkin | |
2018-05-09 19:29 | hudsonbot | Note Added: 0104386 | |
2018-05-09 19:29 | hudsonbot | Checkin | |
2018-05-09 19:29 | hudsonbot | Note Added: 0104387 | |
2019-02-14 03:00 | markmm82 | Relationship added | causes 0040189 |
Notes |
|
|
|
|
(0103954)
|
hgbot
|
2018-04-18 09:41
|
|
Repository: erp/devel/pi
Changeset: b1cfd9a88be06141647c4d22aa41ec51aa3467e1
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Apr 18 09:01:42 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b1cfd9a88be06141647c4d22aa41ec51aa3467e1 [^]
fixes issue 38382: Deprecate positional query parameters in OBQuery
- Deprecate OBQuery.setParameters(List) method.
- Declare OBQuery.getParameters() as private because it is only used internally.
- Deprecate OBDal.createQuery(Class, String List), which is making use of OBQuery.setParameters(List).
- Deprecate OBDal.createQuery(String, String, List), which is making use of OBQuery.setParameters(List).
---
M src/org/openbravo/dal/service/OBDal.java
M src/org/openbravo/dal/service/OBQuery.java
---
|
|
|
(0103955)
|
hgbot
|
2018-04-18 09:41
|
|
Repository: erp/devel/pi
Changeset: b19430097c35d3b6bdb8155cf0e9c3f626d4a40d
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Apr 18 09:14:05 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b19430097c35d3b6bdb8155cf0e9c3f626d4a40d [^]
related to issue 38382: use named parameters instead of positional parameters
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_forms/Transactions.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/MatchTransactionDao.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/TransactionsDao.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_BankStatementProcess.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_BankStatementImport.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/ComputeWindowActionHandler.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/personalization/PersonalizationActionHandler.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/personalization/PersonalizationHandler.java
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ADTreeDatasourceService.java
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/LinkToParentTreeDatasourceService.java
M src-test/src/org/openbravo/test/dal/DalComplexQueryRequisitionTest.java
M src-test/src/org/openbravo/test/dal/DalComplexQueryTestOrderLine.java
M src-test/src/org/openbravo/test/dal/DalQueryTest.java
M src-test/src/org/openbravo/test/security/AccessLevelTest.java
M src/org/openbravo/erpCommon/ad_callouts/SE_Locator_Activate.java
M src/org/openbravo/erpCommon/ad_process/assets/AssetLinearDepreciationMethodProcess.java
M src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.java
M src/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.java
M src/org/openbravo/erpCommon/businessUtility/Preferences.java
M src/org/openbravo/erpCommon/utility/ReferencedLink.java
---
|
|
|
(0103957)
|
hgbot
|
2018-04-18 09:42
|
|
Repository: erp/pmods/org.openbravo.retail.config
Changeset: afcbd353a09719f0fce0346f2731b770176b6009
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Apr 18 08:24:45 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.config/rev/afcbd353a09719f0fce0346f2731b770176b6009 [^]
related to issue 38382: use named parameters instead of positional parameters
---
M src/org/openbravo/retail/config/businesslogic/CloneProductListActionHandler.java
M src/org/openbravo/retail/config/process/IncludeAllProducts.java
---
|
|
|
(0103958)
|
hgbot
|
2018-04-18 09:43
|
|
|
|
(0103959)
|
hgbot
|
2018-04-18 09:43
|
|
|
|
(0103960)
|
hgbot
|
2018-04-18 09:44
|
|
|
|
(0103961)
|
hgbot
|
2018-04-18 09:45
|
|
|
|
(0103962)
|
hgbot
|
2018-04-18 09:45
|
|
|
|
(0103963)
|
hgbot
|
2018-04-18 09:53
|
|
|
|
(0103986)
|
hgbot
|
2018-04-18 21:19
|
|
|
|
(0103989)
|
hgbot
|
2018-04-19 09:00
|
|
|
|
(0103990)
|
hgbot
|
2018-04-19 10:21
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|