Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0020611 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
design defect | [Openbravo ERP] A. Platform | major | have not tried | 2012-05-25 13:12 | 2012-06-27 18:33 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0MP13 | |||
Status | closed | Fix in branch | Fixed in SCM revision | a0b44c4d6906 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0020611: OBCriteria doesn't support ScrollabeResults | |||||||
Description | OBCriteria doesn't support ScrollabeResults. | |||||||
Steps To Reproduce | For some reason it raises org.hibernate.MappingException: Unknown entity: org.openbravo.model.common.businesspartner.BusinessPartner: OBCriteria<BusinessPartner> c = OBDal.getInstance().createCriteria(BusinessPartner.class); ScrollableResults iterator = c.scroll(ScrollMode.FORWARD_ONLY); Note that replacing q.scroll(ScrollMode.FORWARD_ONLY) with q.list() works, so it seems not to be a problem in the mapping. Might it be a Hibernate issue: https://forum.hibernate.org/viewtopic.php?f=1&t=987983 [^] | |||||||
Tags | Performance | |||||||
Attached Files | 20611.diff [^] (2,990 bytes) 2012-06-03 22:17 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0049594) mtaal (manager) 2012-06-03 22:18 |
The attached diff solves this issue. |
(0049622) hgbot (developer) 2012-06-05 15:36 |
Repository: erp/devel/pi Changeset: a0b44c4d6906d5e2b397b320dea4c0f104524ad8 Author: Martin Taal <martin.taal <at> openbravo.com> Date: Tue Jun 05 13:07:50 2012 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/a0b44c4d6906d5e2b397b320dea4c0f104524ad8 [^] Fixes issue 20611: OBCriteria doesn't support ScrollabeResults Use the entity name instead of the classname to initialize the hibernate criteria --- M src-test/org/openbravo/test/dal/IssuesTest.java --- |
(0050194) alostale (manager) 2012-06-27 18:33 |
Code reviewed and verified in pi@db25f47ad0a4 |
Issue History | |||
Date Modified | Username | Field | Change |
2012-05-25 13:12 | alostale | New Issue | |
2012-05-25 13:12 | alostale | Assigned To | => alostale |
2012-05-25 13:12 | alostale | Modules | => Core |
2012-06-01 07:55 | alostale | Tag Attached: Performance | |
2012-06-01 07:55 | alostale | Relationship added | has duplicate 0020515 |
2012-06-01 08:00 | alostale | Relationship replaced | related to 0020515 |
2012-06-03 22:17 | mtaal | File Added: 20611.diff | |
2012-06-03 22:18 | mtaal | Note Added: 0049594 | |
2012-06-05 15:36 | hgbot | Checkin | |
2012-06-05 15:36 | hgbot | Note Added: 0049622 | |
2012-06-05 15:36 | hgbot | Status | new => resolved |
2012-06-05 15:36 | hgbot | Resolution | open => fixed |
2012-06-05 15:36 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a0b44c4d6906d5e2b397b320dea4c0f104524ad8 [^] |
2012-06-27 18:33 | alostale | Note Added: 0050194 | |
2012-06-27 18:33 | alostale | Status | resolved => closed |
2012-06-27 18:33 | alostale | Fixed in Version | => 3.0MP13 |
Copyright © 2000 - 2009 MantisBT Group |