|
The problem is caused because the table has not identifier.
When compiling this message is got:
[WADValidation] 53 [main] ERROR org.openbravo.wad.validation.WADValidationResult - +++++++++++++++++++++++++++++++++++++++++++++++++++
[WADValidation] 58 [main] ERROR org.openbravo.wad.validation.WADValidationResult - Errors for Validation type: Missing Identifier
[WADValidation] 65 [main] ERROR org.openbravo.wad.validation.WADValidationResult - +++++++++++++++++++++++++++++++++++++++++++++++++++
[WADValidation] 67 [main] ERROR org.openbravo.wad.validation.WADValidationResult - Table Hotel_guest has not identifier.
This is the error obtained when trying to fetch data:
581283 [http-8881-4] ERROR org.hibernate.hql.PARSER - line 1:393: unexpected token: null
581292 [http-8881-4] ERROR org.openbravo.base.exception.OBException - Exception when creating query select e from Hotel_guest as e where e.organization.id in ('0', '4F68EB1C1B734E79B27DE9D2DF56089F', '0D8E225ADA6E425E98EAA0F34E5912D7', 'B9C7088AB859483A9B1FB342AC2BE17A', '90A1F59849E84AFABD04814B3D15A691', '378AF0EAE1A2479EAAA33436645E9433', '3C816D72B14D4BBCB8571404B794AB84', '7A8E888A4B4C4E638CD5EB3A41A3289A') and e.client.id in ('FF8080812AFBCB14012AFBD3E373001F', '0')order by
org.hibernate.hql.ast.QuerySyntaxException: unexpected token: null near line 1, column 393 [select e from Hotel_guest as e where e.organization.id in ('0', '4F68EB1C1B734E79B27DE9D2DF56089F', '0D8E225ADA6E425E98EAA0F34E5912D7', 'B9C7088AB859483A9B1FB342AC2BE17A', '90A1F59849E84AFABD04814B3D15A691', '378AF0EAE1A2479EAAA33436645E9433', '3C816D72B14D4BBCB8571404B794AB84', '7A8E888A4B4C4E638CD5EB3A41A3289A') and e.client.id in ('FF8080812AFBCB14012AFBD3E373001F', '0')order by ]
Problem is in DefaultDataSource, it receives 'identifier' as sort parameter but it is not present in table definition.
Martin: should we do some checks (the ones done in WAD validations??) before trying to build a window? |
|