Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0011681 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2009-12-08 13:15 | 2009-12-11 06:38 | |||
Reporter | mtaal | View Status | public | |||||
Assigned To | mtaal | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | f3ebfe1924eb | ||||
Projection | none | ETA | none | Target Version | pi | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | pi | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0011681: Hibernate actions are not flushed before DalConnectionProvider is used | |||||||
Description | The DalConnectionProvider is used in scenarios where actions through the hibernate session have to occur in the same transaction as traditional Openbravo logic using a ConnectionProvider. Hibernate does not flush all actions immediately to the database (flush mode has been set to manually). This means that when someone first does an action through hibernate and then uses a DalConnectionProvider that the connection (retrieved through the DalConnectionProvider) does not always see all hibernate actions. | |||||||
Proposed Solution | The proposal is to automatically flush the hibernate session before returning a connection from the DalConnectionProvider. The same for getting the connection from the OBDal class. In this way the connection will see the actions performed in hibernate. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0022545) hgbot (developer) 2009-12-08 16:44 |
Repository: erp/devel/pi Changeset: 4cb0d4d3bfd2b700c7258d837dcd2f4fca52f2c1 Author: Martin Taal <martin.taal <at> openbravo.com> Date: Tue Dec 08 16:40:50 2009 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/4cb0d4d3bfd2b700c7258d837dcd2f4fca52f2c1 [^] fixes issue 11681: Hibernate actions are not flushed before DalConnectionProvider is used --- M src/org/openbravo/dal/service/OBDal.java M src/org/openbravo/service/db/DalConnectionProvider.java --- |
(0022574) hgbot (developer) 2009-12-09 12:26 |
Repository: erp/devel/pi Changeset: f3ebfe1924eb60c461b1950d2566b2e97b73c30b Author: Iván Perdomo <ivan.perdomo <at> openbravo.com> Date: Wed Dec 09 12:26:12 2009 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/f3ebfe1924eb60c461b1950d2566b2e97b73c30b [^] Added test case for issue 11681 --- M src-test/org/openbravo/test/dal/IssuesTest.java --- |
(0022575) iperdomo (viewer) 2009-12-09 12:28 |
Tested on pi @ rev f3ebfe1924eb |
(0022668) hudsonbot (viewer) 2009-12-11 06:35 |
--- A changeset related to this issue has passed a series of tests and has been promoted to main: Changeset: http://code.openbravo.com/erp/devel/main/rev/789f4e19eaf7 [^] Tests: http://builds.openbravo.com/view/devel-int/ [^] --- |
(0022675) hudsonbot (viewer) 2009-12-11 06:38 |
--- An OBX is generated including a changeset related to this issue and is available at: OBX: http://builds.openbravo.com/erp/obx/core/OpenbravoERP-2.50CI.15682.obx [^] --- |
![]() |
|||
Date Modified | Username | Field | Change |
2009-12-08 13:15 | mtaal | New Issue | |
2009-12-08 13:15 | mtaal | Assigned To | => rafaroda |
2009-12-08 13:15 | mtaal | OBNetwork customer | => No |
2009-12-08 14:32 | mtaal | Assigned To | rafaroda => mtaal |
2009-12-08 14:41 | mtaal | Summary | When the DalConnectionProvider not all hibernate actions are flushed before => When the DalConnectionProvider is used not all hibernate actions are flushed before |
2009-12-08 16:41 | mtaal | Summary | When the DalConnectionProvider is used not all hibernate actions are flushed before => Hibernate actions are not flushed before DalConnectionProvider is used |
2009-12-08 16:44 | hgbot | Checkin | |
2009-12-08 16:44 | hgbot | Note Added: 0022545 | |
2009-12-08 16:44 | hgbot | Status | new => resolved |
2009-12-08 16:44 | hgbot | Resolution | open => fixed |
2009-12-08 16:44 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/4cb0d4d3bfd2b700c7258d837dcd2f4fca52f2c1 [^] |
2009-12-09 12:26 | hgbot | Checkin | |
2009-12-09 12:26 | hgbot | Note Added: 0022574 | |
2009-12-09 12:26 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/4cb0d4d3bfd2b700c7258d837dcd2f4fca52f2c1 [^] => http://code.openbravo.com/erp/devel/pi/rev/f3ebfe1924eb60c461b1950d2566b2e97b73c30b [^] |
2009-12-09 12:28 | iperdomo | Note Added: 0022575 | |
2009-12-09 12:28 | iperdomo | Status | resolved => closed |
2009-12-10 00:00 | anonymous | sf_bug_id | 0 => 2911686 |
2009-12-11 06:35 | hudsonbot | Checkin | |
2009-12-11 06:35 | hudsonbot | Note Added: 0022668 | |
2009-12-11 06:38 | hudsonbot | Checkin | |
2009-12-11 06:38 | hudsonbot | Note Added: 0022675 |
Copyright © 2000 - 2009 MantisBT Group |