Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0011681 | Openbravo ERP | A. Platform | public | 2009-12-08 13:15 | 2009-12-11 06:38 |
|
Reporter | mtaal | |
Assigned To | mtaal | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | pi | Fixed in Version | | |
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.
|
Steps To Reproduce | |
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. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
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 | |
Notes |
|
(0022545)
|
hgbot
|
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
|
2009-12-09 12:26
|
|
|
|
|
Tested on pi @ rev f3ebfe1924eb |
|
|
|
|
|
|
|