Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0038445
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2018-04-25 13:212018-06-08 11:30
ReportercaristuView Statuspublic 
Assigned Tojarmendariz 
PriorityhighResolutionfixedFixed in Version3.0PR18Q3
StatusclosedFix in branchFixed in SCM revisionc9a4a5d95eb5
ProjectionnoneETAnoneTarget Version3.0PR18Q3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0038445: Do not use positional query parameters with Query (Retail)

DescriptionLegacy-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 ReproduceIn description
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0038442 closedcaristu Do not use positional query parameters with Query 
related to defect 00384463.0PR18Q3 closedjarmendariz Do not use positional query parameters with Query (Modules) 
related to feature request 0037064 closedcaristu upgrade hibernate to 5.3.2 

-  Notes
(0104961)
hgbot (developer)
2018-06-05 18:11

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 0e8ecd06a02ebdf906a6a4ddda5027e6a6f80b23
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Mon Jun 04 11:25:36 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0e8ecd06a02ebdf906a6a4ddda5027e6a6f80b23 [^]

Fixed issue 38445: Removed positional parameters in Queries.

Positional parameters will be deprecated in future versions of Hibernate, so
its better not using it to make transition smoother.

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginUtilsServlet.java
---
(0104962)
hgbot (developer)
2018-06-05 18:11

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 9d5c895e2bfc2d430fc044dacb5232d993310105
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Tue Jun 05 11:21:01 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/9d5c895e2bfc2d430fc044dacb5232d993310105 [^]

Related to issue 38445: Replaced Query.setString to setParameter.

Starting from Hibernate 5.2, setString(String, String) is marked as deprecated.

---
M src/org/openbravo/mobile/core/listener/StatusBackgroundProcessScheduler.java
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
M src/org/openbravo/mobile/core/login/MobileCoreLoginUtilsServlet.java
M src/org/openbravo/mobile/core/servercontroller/ForceTransitionToOnline.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerStatusInformation.java
---
(0104963)
hgbot (developer)
2018-06-05 18:12

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c9a4a5d95eb50f02832051a9d5dc2ecf66eee99e
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Mon Jun 04 11:35:08 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c9a4a5d95eb50f02832051a9d5dc2ecf66eee99e [^]

Fixed issue 38445: Removed positional parameters in Queries.

Positional parameters will be deprecated in future versions of Hibernate, so
its better not using it to make transition smoother.

---
M src/org/openbravo/retail/posterminal/ExternalOrderLoader.java
M src/org/openbravo/retail/posterminal/POSUtils.java
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M src/org/openbravo/retail/posterminal/UpdateCashup.java
M src/org/openbravo/retail/posterminal/term/CashCloseReport.java
---
(0104964)
hgbot (developer)
2018-06-05 18:12

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a4f9ba15a7e9f11dc31496a8bef9430b25155692
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Tue Jun 05 11:22:07 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a4f9ba15a7e9f11dc31496a8bef9430b25155692 [^]

Related to issue 38445: Replaced Query.setString to setParameter.

Starting from Hibernate 5.2, setString(String, String) is marked as deprecated.

---
M src/org/openbravo/retail/posterminal/ExternalOrderLoader.java
M src/org/openbravo/retail/posterminal/POSUtils.java
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M src/org/openbravo/retail/posterminal/UpdateCashup.java
M src/org/openbravo/retail/posterminal/term/CashCloseReport.java
M src/org/openbravo/retail/posterminal/term/Payments.java
---
(0105031)
caristu (developer)
2018-06-08 11:30

Reviewed

- Issue History
Date Modified Username Field Change
2018-04-25 13:21 caristu New Issue
2018-04-25 13:21 caristu Assigned To => jarmendariz
2018-04-25 13:21 caristu Modules => Core
2018-04-25 13:21 caristu Triggers an Emergency Pack => No
2018-04-25 13:21 caristu Issue generated from 0038442
2018-04-25 13:21 caristu Relationship added related to 0038442
2018-04-25 13:23 caristu Target Version => 3.0PR18Q3
2018-04-25 13:24 caristu Relationship added related to 0038446
2018-04-27 13:25 alostale Relationship added related to 0037064
2018-06-04 11:24 jarmendariz Status new => scheduled
2018-06-05 18:11 hgbot Checkin
2018-06-05 18:11 hgbot Note Added: 0104961
2018-06-05 18:11 hgbot Status scheduled => resolved
2018-06-05 18:11 hgbot Resolution open => fixed
2018-06-05 18:11 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0e8ecd06a02ebdf906a6a4ddda5027e6a6f80b23 [^]
2018-06-05 18:11 hgbot Checkin
2018-06-05 18:11 hgbot Note Added: 0104962
2018-06-05 18:12 hgbot Checkin
2018-06-05 18:12 hgbot Note Added: 0104963
2018-06-05 18:12 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0e8ecd06a02ebdf906a6a4ddda5027e6a6f80b23 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c9a4a5d95eb50f02832051a9d5dc2ecf66eee99e [^]
2018-06-05 18:12 hgbot Checkin
2018-06-05 18:12 hgbot Note Added: 0104964
2018-06-06 08:58 jarmendariz Review Assigned To => caristu
2018-06-08 11:30 caristu Note Added: 0105031
2018-06-08 11:30 caristu Status resolved => closed
2018-06-08 11:30 caristu Fixed in Version => 3.0PR18Q3


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker