Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0038512 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
design defect | [Openbravo ERP] A. Platform | minor | have not tried | 2018-05-10 09:23 | 2018-05-10 13:42 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | platform | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
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 | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0038512: OBQuery can fail using objects from OBContext as parameters | |||||||
Description | OBQuery can fail using objects from OBContext as parameters. | |||||||
Steps To Reproduce | 1) Apply the attached patch (obquery.diff) 2) Log-in 3) Open the About pop-up. The query fails, showing the following error trace: ERROR org.openbravo.erpCommon.ad_forms.About - Error captured: org.hibernate.MappingException: Unknown entity: org.openbravo.model.ad.system.Client at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:694) at org.hibernate.impl.SessionFactoryImpl.getIdentifierType(SessionFactoryImpl.java:781) at org.hibernate.type.EntityType.getIdentifierType(EntityType.java:560) at org.hibernate.type.EntityType.getIdentifierOrUniqueKeyType(EntityType.java:585) at org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:130) at org.hibernate.param.NamedParameterSpecification.bind(NamedParameterSpecification.java:67) at org.hibernate.loader.hql.QueryLoader.bindParameterValues(QueryLoader.java:571) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1716) 4) Note that when building the same query (with the same parameter) using OBCriteria, it can be executed properly (see attached obcriteria.diff) | |||||||
Tags | No tags attached. | |||||||
Attached Files | obquery.diff [^] (1,463 bytes) 2018-05-10 09:23 [Show Content]
obcriteria.diff [^] (1,644 bytes) 2018-05-10 09:25 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0104443) caristu (developer) 2018-05-10 09:31 edited on: 2018-05-10 09:31 |
Note that this problem can't be reproduced with hibernate 5.3.0.CR2[1]. So, this issue will be fixed with the hibernate upgrade. [1] https://code.openbravo.com/erp/devel/pi-hb53 [^] |
(0104452) caristu (developer) 2018-05-10 13:42 |
Fixed with 0037064 |
Issue History | |||
Date Modified | Username | Field | Change |
2018-05-10 09:23 | caristu | New Issue | |
2018-05-10 09:23 | caristu | Assigned To | => platform |
2018-05-10 09:23 | caristu | File Added: obquery.diff | |
2018-05-10 09:23 | caristu | Modules | => Core |
2018-05-10 09:23 | caristu | Triggers an Emergency Pack | => No |
2018-05-10 09:25 | caristu | File Added: obcriteria.diff | |
2018-05-10 09:26 | caristu | Steps to Reproduce Updated | View Revisions |
2018-05-10 09:28 | caristu | Relationship added | related to 0037064 |
2018-05-10 09:31 | caristu | Note Added: 0104443 | |
2018-05-10 09:31 | caristu | Note Edited: 0104443 | View Revisions |
2018-05-10 09:42 | caristu | Type | defect => design defect |
2018-05-10 09:42 | caristu | Relationship deleted | related to 0037064 |
2018-05-10 09:42 | caristu | Relationship added | depends on 0037064 |
2018-05-10 13:42 | caristu | Review Assigned To | => caristu |
2018-05-10 13:42 | caristu | Note Added: 0104452 | |
2018-05-10 13:42 | caristu | Status | new => closed |
2018-05-10 13:42 | caristu | Resolution | open => fixed |
Copyright © 2000 - 2009 MantisBT Group |