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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037708
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformminorhave not tried2018-01-23 18:502022-02-01 08:08
ReporteraferrazView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
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

0037708: Update of Order table not working in HQL

DescriptionIf we try to run an update query in Order table using HQL, following error is raised: java.lang.IllegalArgumentException: node to traverse cannot be null!
Steps To ReproduceCreate following HQL query:
Query updateQry = OBDal.getInstance().getSession().createQuery("update Order set description = 'a'");

You get following error:
java.lang.IllegalArgumentException: node to traverse cannot be null!

If we create the same query for Invoice table instead of Order table, query is correctly created:
Query updateQry = OBDal.getInstance().getSession().createQuery("update Invoice set description = 'a'");

It seems that Hibernate is confusing Order table name with order by keyword.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0028330 closedreinaldoguerra "java.lang.IllegalArgumentException: node to traverse cannot be null!" error when executing Reset Accounting 
related to defect 00281633.0PR15Q1 closedreinaldoguerra "java.lang.IllegalArgumentException: node to traverse cannot be null!" error when trying to Unpost an Order 

-  Notes
(0102292)
alostale (manager)
2018-02-09 09:27

Moving to design defect, as this seems to be a Hibernate restriction [1].

[1] https://stackoverflow.com/questions/3599803/jpa-hibernate-cant-create-entity-called-order [^]

- Issue History
Date Modified Username Field Change
2018-01-23 18:50 aferraz New Issue
2018-01-23 18:50 aferraz Assigned To => platform
2018-01-23 18:50 aferraz Modules => Core
2018-01-23 18:50 aferraz Triggers an Emergency Pack => No
2018-01-23 18:51 aferraz Relationship added related to 0028330
2018-01-23 18:52 aferraz Relationship added related to 0028163
2018-01-23 18:53 aferraz Description Updated View Revisions
2018-01-23 18:53 aferraz Steps to Reproduce Updated View Revisions
2018-01-23 18:56 aferraz Steps to Reproduce Updated View Revisions
2018-02-09 09:27 alostale Note Added: 0102292
2018-02-09 09:27 alostale Status new => acknowledged
2018-02-09 09:27 alostale Type defect => design defect
2022-02-01 08:08 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker