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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0020611
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformmajorhave not tried2012-05-25 13:122012-06-27 18:33
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version3.0MP13
StatusclosedFix in branchFixed in SCM revisiona0b44c4d6906
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0020611: OBCriteria doesn't support ScrollabeResults

DescriptionOBCriteria doesn't support ScrollabeResults.

Steps To ReproduceFor 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 [^]
TagsPerformance
Attached Filesdiff file icon 20611.diff [^] (2,990 bytes) 2012-06-03 22:17 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to design defect 0020515 closedalostale OBCriteria creates contention at JVM 

-  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
Powered by Mantis Bugtracker