Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038446Openbravo ERPA. Platformpublic2018-04-25 13:222018-06-25 18:01
caristu 
jarmendariz 
highminorhave not tried
closedfixed 
5
 
3.0PR18Q33.0PR18Q3 
caristu
Core
No
0038446: Do not use positional query parameters with Query (Modules)
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 [^]
In description
No tags attached.
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 
related to defect 00384453.0PR18Q3 closed jarmendariz Openbravo ERP Do not use positional query parameters with Query (Retail) 
causes defect 0039491 closed caristu Retail Modules Forward Update Analytics Fact Tables process finishes with OBRetailAnalyticsFactSessionUpdater: Error in Process Log field 
causes defect 0040282 closed rqueralta Retail Modules Till Details tab in Terminals and Tills status window is not showing any value, an error is shown when selecting a record 
Issue History
2018-04-25 13:22caristuNew Issue
2018-04-25 13:22caristuAssigned To => caristu
2018-04-25 13:22caristuModules => Core
2018-04-25 13:22caristuTriggers an Emergency Pack => No
2018-04-25 13:22caristuIssue generated from0038442
2018-04-25 13:22caristuRelationship addedrelated to 0038442
2018-04-25 13:22caristuAssigned Tocaristu => jarmendariz
2018-04-25 13:23caristuTarget Version => 3.0PR18Q3
2018-04-25 13:24caristuRelationship addedrelated to 0038445
2018-04-27 13:25alostaleRelationship addedrelated to 0037064
2018-06-05 18:14jarmendarizStatusnew => scheduled
2018-06-13 09:11jarmendarizNote Added: 0105109
2018-06-13 09:13hgbotCheckin
2018-06-13 09:13hgbotNote Added: 0105110
2018-06-13 09:13hgbotStatusscheduled => resolved
2018-06-13 09:13hgbotResolutionopen => fixed
2018-06-13 09:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.creditmanagement.dunning/rev/98a818a525a371d04177b971d52b13677611ed25 [^]
2018-06-13 09:15hgbotCheckin
2018-06-13 09:15hgbotNote Added: 0105111
2018-06-13 09:15hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.creditmanagement.dunning/rev/98a818a525a371d04177b971d52b13677611ed25 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.financial.dimensionalpandlreport/rev/885cdcb03c96060e2d76567e44df0e528f6e6660 [^]
2018-06-13 09:17hgbotCheckin
2018-06-13 09:17hgbotNote Added: 0105112
2018-06-13 09:17hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.financial.dimensionalpandlreport/rev/885cdcb03c96060e2d76567e44df0e528f6e6660 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.financial.dimensionalreports/rev/9c35e91aeb2929552ddbc6be997c5ea80c449561 [^]
2018-06-13 09:18hgbotCheckin
2018-06-13 09:18hgbotNote Added: 0105113
2018-06-13 09:18hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.financial.dimensionalreports/rev/9c35e91aeb2929552ddbc6be997c5ea80c449561 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.idl/rev/c6e1c2f55f92a7e9d28e5d273caec1070dab9ed8 [^]
2018-06-13 09:38hgbotCheckin
2018-06-13 09:38hgbotNote Added: 0105115
2018-06-13 09:38hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.idl/rev/c6e1c2f55f92a7e9d28e5d273caec1070dab9ed8 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.module.invoicematchingalgorithm/rev/28a1138a0f90ce826b4c531580d10237f074f585 [^]
2018-06-13 09:42hgbotCheckin
2018-06-13 09:42hgbotNote Added: 0105117
2018-06-13 09:42hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.module.invoicematchingalgorithm/rev/28a1138a0f90ce826b4c531580d10237f074f585 [^] => http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/951f7606388b97a13fa9d60820dff2570a5c34e7 [^]
2018-06-13 09:43hgbotCheckin
2018-06-13 09:43hgbotNote Added: 0105118
2018-06-13 09:43hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/951f7606388b97a13fa9d60820dff2570a5c34e7 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.analytics/rev/b521576871b021e6a286c1553b773c17f6073129 [^]
2018-06-13 09:46hgbotCheckin
2018-06-13 09:46hgbotNote Added: 0105119
2018-06-13 09:46hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.analytics/rev/b521576871b021e6a286c1553b773c17f6073129 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.digitalcoupons/rev/ea2dced6b582e3fd00487b7702dd0a2745986f0e [^]
2018-06-13 09:48hgbotCheckin
2018-06-13 09:48hgbotNote Added: 0105120
2018-06-13 09:48hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.digitalcoupons/rev/ea2dced6b582e3fd00487b7702dd0a2745986f0e [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/e4bd4091b73d48f0a251538d9afee4ea23114857 [^]
2018-06-15 10:49alostaleReview Assigned To => caristu
2018-06-25 18:01caristuNote Added: 0105366
2018-06-25 18:01caristuStatusresolved => closed
2018-06-25 18:01caristuFixed in Version => 3.0PR18Q3
2018-10-19 13:26ngarciaRelationship addedcauses 0039491
2018-10-22 08:59caristuRelationship deletedcauses 0039491
2018-10-22 08:59caristuRelationship addedrelated to 0039491
2018-10-22 11:17caristuRelationship deletedrelated to 0039491
2018-10-22 11:17caristuRelationship addedcauses 0039491
2019-02-27 12:04ngarciaRelationship addedcauses 0040282

Notes
(0105109)
jarmendariz   
2018-06-13 09:11   
URL: https://code.openbravo.com/erp/pmods/org.openbravo.client.analytics/rev/b5a9a67f729b [^]

Fixed issue 38446: Replace positional params in Hibernate queries with named ones.
(0105110)
hgbot   
2018-06-13 09:13   
Repository: erp/pmods/org.openbravo.creditmanagement.dunning
Changeset: 98a818a525a371d04177b971d52b13677611ed25
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Thu Jun 07 10:18:26 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.creditmanagement.dunning/rev/98a818a525a371d04177b971d52b13677611ed25 [^]

Fixed issue 38446: Replace positional params in Hibernate queries with named ones.

Positional parameters are deprecated starting from Hibernate 5.2. All usages should be
replaced by setParameters(String, Object).

---
M src/org/openbravo/creditmanagement/dunning/biz/DunningManagerImpl.java
M src/org/openbravo/creditmanagement/dunning/biz/DunningManagerSupport.java
M src/org/openbravo/creditmanagement/dunning/biz/DunningSupport.java
M src/org/openbravo/creditmanagement/dunning/biz/calculator/DunningCalculatorSupport.java
---
(0105111)
hgbot   
2018-06-13 09:15   
Repository: erp/pmods/org.openbravo.financial.dimensionalpandlreport
Changeset: 885cdcb03c96060e2d76567e44df0e528f6e6660
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Thu Jun 07 11:19:32 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.financial.dimensionalpandlreport/rev/885cdcb03c96060e2d76567e44df0e528f6e6660 [^]

Fixed issue 38446: Replace positional params in Hibernate queries with named ones.

Positional parameters are deprecated starting from Hibernate 5.2. All usages should be
replaced by setParameters(String, Object).

---
M src/org/openbravo/financial/dimensionalpandlreport/GenerateProfitAndLossFactAcctTable.java
---
(0105112)
hgbot   
2018-06-13 09:17   
Repository: erp/pmods/org.openbravo.financial.dimensionalreports
Changeset: 9c35e91aeb2929552ddbc6be997c5ea80c449561
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Thu Jun 07 11:06:26 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.financial.dimensionalreports/rev/9c35e91aeb2929552ddbc6be997c5ea80c449561 [^]

Fixed issue 38446: Replace positional params in Hibernate queries with named ones.

Positional parameters are deprecated starting from Hibernate 5.2. All usages should be
replaced by setParameters(String, Object).

---
M src/org/openbravo/financial/dimensionalreports/DimensionalReportsUtils.java
M src/org/openbravo/financial/dimensionalreports/InitializeAccountsTranslationTable.java
---
(0105113)
hgbot   
2018-06-13 09:18   
Repository: erp/pmods/org.openbravo.idl
Changeset: c6e1c2f55f92a7e9d28e5d273caec1070dab9ed8
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Thu Jun 07 11:11:55 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.idl/rev/c6e1c2f55f92a7e9d28e5d273caec1070dab9ed8 [^]

Fixed issue 38446: Replace positional params in Hibernate queries with named ones.

Positional parameters are deprecated starting from Hibernate 5.2. All usages should be
replaced by setParameters(String, Object).

---
M src/org/openbravo/idl/proc/JournalEntriesProcess.java
M src/org/openbravo/idl/proc/ReferenceList.java
---
(0105115)
hgbot   
2018-06-13 09:38   
Repository: erp/pmods/org.openbravo.module.invoicematchingalgorithm
Changeset: 28a1138a0f90ce826b4c531580d10237f074f585
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Thu Jun 07 10:15:37 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.invoicematchingalgorithm/rev/28a1138a0f90ce826b4c531580d10237f074f585 [^]

Fixed issue 38446: Replace positional params in Hibernate queries with named ones.

Positional parameters are deprecated starting from Hibernate 5.2. All usages should be
replaced by setParameters(String, Object).

---
M src/org/openbravo/module/invoicematchingalgorithm/algorithm/InvoiceMatchingAlgorithm.java
---
(0105117)
hgbot   
2018-06-13 09:42   
Repository: erp/mods/org.openbravo.module.remittance
Changeset: 951f7606388b97a13fa9d60820dff2570a5c34e7
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Thu Jun 07 10:39:10 2018 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/951f7606388b97a13fa9d60820dff2570a5c34e7 [^]

Fixed issue 38446: Replace positional params in Hibernate queries with named ones.

Positional parameters are deprecated starting from Hibernate 5.2. All usages should be
replaced by setParameters(String, Object).

---
M src/org/openbravo/module/remittance/process/REM_RemittanceProcess.java
---
(0105118)
hgbot   
2018-06-13 09:43   
Repository: erp/pmods/org.openbravo.retail.analytics
Changeset: b521576871b021e6a286c1553b773c17f6073129
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Thu Jun 07 10:06:52 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.analytics/rev/b521576871b021e6a286c1553b773c17f6073129 [^]

Fixed issue 38446: Replace positional params in Hibernate queries with named ones.

Positional parameters are deprecated starting from Hibernate 5.2. All usages should be
replaced by setParameters(String, Object).

---
M src/org/openbravo/retail/analytics/OBRetailAnalyticsFactSessionUpdater.java
---
(0105119)
hgbot   
2018-06-13 09:46   
Repository: erp/pmods/org.openbravo.retail.digitalcoupons
Changeset: ea2dced6b582e3fd00487b7702dd0a2745986f0e
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Thu Jun 07 11:14:33 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.digitalcoupons/rev/ea2dced6b582e3fd00487b7702dd0a2745986f0e [^]

Fixed issue 38446: Replace positional params in Hibernate queries with named ones.

Positional parameters are deprecated starting from Hibernate 5.2. All usages should be
replaced by setParameters(String, Object).

---
M src/org/openbravo/retail/digitalcoupons/process/DigitalCouponsPaidReceiptsPaymentsTypeHook.java
---
(0105120)
hgbot   
2018-06-13 09:48   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: e4bd4091b73d48f0a251538d9afee4ea23114857
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Thu Jun 07 11:26:04 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/e4bd4091b73d48f0a251538d9afee4ea23114857 [^]

Fixed issue 38446: Replace positional params in Hibernate queries with named ones.

Positional parameters are deprecated starting from Hibernate 5.2. All usages should be
replaced by setParameters(String, Object).

---
M src/org/openbravo/retail/sessions/CashUpDetailsDatasource.java
M src/org/openbravo/retail/sessions/CashupRepHook.java
M src/org/openbravo/retail/sessions/TerminalProperties.java
---
(0105366)
caristu   
2018-06-25 18:01   
Reviewed