Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039144Retail ModulesStoreServerpublic2018-08-16 12:122018-10-03 13:28
ioritzCia 
mtaal 
normalminoralways
closedno change required 
30Ubuntu 18.04
RR17Q2 
 
AugustoMauch
No
0039144: DAL queries should be replaced by SQL queries to avoid the change of Hibernate API
DAL queries should be replaced by SQL queries to avoid the change of Hibernate API
N/A
No tags attached.
has duplicate feature request 0039090 closed mtaal Use dal connection object and other solutions to make hibernate usage backward and forward compat 
related to feature request 0039319 new Retail Use Hibernate Query object typed in all cases 
diff retail-sync.diff (37,398) 2018-09-25 23:22
https://issues.openbravo.com/file_download.php?file_id=12177&type=bug
diff repl.diff (22,105) 2018-09-25 23:23
https://issues.openbravo.com/file_download.php?file_id=12178&type=bug
Issue History
2018-08-16 12:12ioritzCiaNew Issue
2018-08-16 12:12ioritzCiaAssigned To => StoreServer
2018-08-16 12:12ioritzCiaResolution time => 1538344800
2018-08-16 12:12ioritzCiaTriggers an Emergency Pack => No
2018-08-17 00:25mtaalNote Added: 0106372
2018-09-05 09:28ioritzCiaRelationship addedrelated to 0039090
2018-09-11 12:10mtaalAssigned ToStoreServer => mtaal
2018-09-19 14:59adrianromeroRelationship addedrelated to 0039319
2018-09-24 08:41AugustoMauchRelationship replacedhas duplicate 0039090
2018-09-24 23:13mtaalFile Added: hb-upgrade-replication.diff
2018-09-25 23:22mtaalFile Deleted: hb-upgrade-replication.diff
2018-09-25 23:22mtaalFile Added: retail-sync.diff
2018-09-25 23:23mtaalFile Added: repl.diff
2018-10-01 05:48hgbotCheckin
2018-10-01 05:48hgbotNote Added: 0107080
2018-10-01 05:48mtaalReview Assigned To => AugustoMauch
2018-10-01 05:52hgbotCheckin
2018-10-01 05:52hgbotNote Added: 0107082
2018-10-01 05:52hgbotStatusnew => resolved
2018-10-01 05:52hgbotResolutionopen => fixed
2018-10-01 05:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/3492b2625a65154784ae6e02f1fe8a02fcb7ca2b [^]
2018-10-02 17:11AugustoMauchNote Added: 0107120
2018-10-02 17:11AugustoMauchStatusresolved => new
2018-10-02 17:11AugustoMauchResolutionfixed => open
2018-10-03 13:27hgbotCheckin
2018-10-03 13:27hgbotNote Added: 0107137
2018-10-03 13:28hgbotCheckin
2018-10-03 13:28hgbotNote Added: 0107138
2018-10-03 13:28AugustoMauchNote Added: 0107139
2018-10-03 13:28AugustoMauchStatusnew => closed
2018-10-03 13:28AugustoMauchResolutionopen => no change required

Notes
(0106372)
mtaal   
2018-08-17 00:25   
See here the links for the relevant hb-upgrade changesets. Note is both in sym-ds as well as in retail store server sync module:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/d19a823ff93c [^]

https://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/1724a2e70551 [^]
(0107080)
hgbot   
2018-10-01 05:48   
Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: 39ad04d9cf38da78f77a7f2436bf57f389fff781
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Oct 01 05:48:15 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/39ad04d9cf38da78f77a7f2436bf57f389fff781 [^]

Related to issue 39144: DAL queries should be replaced by SQL queries to avoid the change of Hibernate API
Several changes related to using direct sql queries instead of the hibernate api

---
M src/org/openbravo/replication/symmetricds/SetupSymmetricListener.java
M src/org/openbravo/replication/symmetricds/datasource/RegisteredServersDS.java
M src/org/openbravo/replication/symmetricds/task/SetMandatoryReloadFlagTask.java
M src/org/openbravo/replication/symmetricds/util/OutgoingBatchReloader.java
M src/org/openbravo/replication/symmetricds/validation/DataValidationError.java
M src/org/openbravo/replication/symmetricds/validation/ExportedTableValidator.java
M src/org/openbravo/replication/symmetricds/validation/SynchronizationStoreDataValidator.java
---
(0107082)
hgbot   
2018-10-01 05:52   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 3492b2625a65154784ae6e02f1fe8a02fcb7ca2b
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Oct 01 05:52:03 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/3492b2625a65154784ae6e02f1fe8a02fcb7ca2b [^]

Fixes issue 39144: DAL queries should be replaced by SQL queries to avoid the change of Hibernate API
Use non-hibernate api in several places, also do not check transaction, is slightly less efficient but not a big issue

---
M src/org/openbravo/retail/storeserver/synchronization/IgnoreVersionCheckPreferenceEventHandler.java
M src/org/openbravo/retail/storeserver/synchronization/StoreServerVersionHandler.java
M src/org/openbravo/retail/storeserver/synchronization/eventhandler/AutoRouteAndPushGenericEventHandler.java
M src/org/openbravo/retail/storeserver/synchronization/process/BusinessPartnerAndRelatedTablesSynchronizer.java
M src/org/openbravo/retail/storeserver/synchronization/router/AssortmentRouter.java
M src/org/openbravo/retail/storeserver/synchronization/router/LocationRouter.java
M src/org/openbravo/retail/storeserver/synchronization/router/ProductPriceRouter.java
M src/org/openbravo/retail/storeserver/synchronization/router/UserTerminalAccessRouter.java
---
(0107120)
AugustoMauch   
2018-10-02 17:11   
Reopened, because it is better (less verbose, less error prone) to use xsql than to execute plain sql directly in Java
(0107137)
hgbot   
2018-10-03 13:27   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 9dad357af1ecd8de5938d27e3953d90d7df08e03
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Oct 03 13:26:59 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/9dad357af1ecd8de5938d27e3953d90d7df08e03 [^]

Related with issue 39144: Backed out changeset 3492b2625a65, changes not needed

Instead of modifying the codebase to make it compatible with the previous version of hibernate,
it is going to remain as it is, and if backports to previous versions are needed, the backports
will be adapted.

---
M src/org/openbravo/retail/storeserver/synchronization/IgnoreVersionCheckPreferenceEventHandler.java
M src/org/openbravo/retail/storeserver/synchronization/StoreServerVersionHandler.java
M src/org/openbravo/retail/storeserver/synchronization/eventhandler/AutoRouteAndPushGenericEventHandler.java
M src/org/openbravo/retail/storeserver/synchronization/process/BusinessPartnerAndRelatedTablesSynchronizer.java
M src/org/openbravo/retail/storeserver/synchronization/router/AssortmentRouter.java
M src/org/openbravo/retail/storeserver/synchronization/router/LocationRouter.java
M src/org/openbravo/retail/storeserver/synchronization/router/ProductPriceRouter.java
M src/org/openbravo/retail/storeserver/synchronization/router/UserTerminalAccessRouter.java
---
(0107138)
hgbot   
2018-10-03 13:28   
Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: d66ca9ce9503ac8d41dcabdfa7b0b0765d63b526
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Oct 03 13:27:44 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/d66ca9ce9503ac8d41dcabdfa7b0b0765d63b526 [^]

Related with issue 39144: Backed out changeset 39ad04d9cf38, changes not needed

Instead of modifying the codebase to make it compatible with the previous version of hibernate,
it is going to remain as it is, and if backports to previous versions are needed, the backports
will be adapted.

---
M src/org/openbravo/replication/symmetricds/SetupSymmetricListener.java
M src/org/openbravo/replication/symmetricds/datasource/RegisteredServersDS.java
M src/org/openbravo/replication/symmetricds/task/SetMandatoryReloadFlagTask.java
M src/org/openbravo/replication/symmetricds/util/OutgoingBatchReloader.java
M src/org/openbravo/replication/symmetricds/validation/DataValidationError.java
M src/org/openbravo/replication/symmetricds/validation/ExportedTableValidator.java
M src/org/openbravo/replication/symmetricds/validation/SynchronizationStoreDataValidator.java
---
(0107139)
AugustoMauch   
2018-10-03 13:28   
Instead of modifying the codebase to make it compatible with the previous version of hibernate,
it is going to remain as it is, and if backports to previous versions are needed, the backports
will be adapted.