Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023915Openbravo ERP00. Application dictionarypublic2013-05-25 19:172013-05-28 23:56
rjapoova 
shankarb 
normalmajoralways
closedfixed 
5
pi 
3.0MP24 
AugustoMauch
Core
No
0023915: Java class name for a table cannot contain spaces
When you define a table in AD you need to enter a name for the Java class that is automatically generated for it.
The field does not provide any validation.

If you enter a name that contains blanks and save it, when you perform the ant export.database task, the task fails.

The task continues to fail even after you correct the Java class as the generated file is never deleted and the only way to recover is to manually remove the file.
Create a table and assign a Java class with spaces
Execute ant database.export
Correct the class name
Execute ant database.export again
Since Openbravo support pattern based validation of fields, it is now possible to add a validation to the field not to allow spaces
No tags attached.
Issue History
2013-05-25 19:17rjapoovaNew Issue
2013-05-25 19:17rjapoovaAssigned To => AugustoMauch
2013-05-25 19:17rjapoovaModules => Core
2013-05-25 19:17rjapoovaTriggers an Emergency Pack => No
2013-05-27 07:35shankarbAssigned ToAugustoMauch => shankarb
2013-05-27 15:47shankarbReview Assigned To => AugustoMauch
2013-05-27 15:47shankarbIssue Monitored: AugustoMauch
2013-05-27 15:47shankarbStatusnew => scheduled
2013-05-27 15:47shankarbfix_in_branch => pi
2013-05-27 15:48hgbotCheckin
2013-05-27 15:48hgbotNote Added: 0058967
2013-05-27 15:48hgbotStatusscheduled => resolved
2013-05-27 15:48hgbotResolutionopen => fixed
2013-05-27 15:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d8cc7de67a13f33aeda7df418ca2f56021fd8d4a [^]
2013-05-27 17:57AugustoMauchNote Added: 0058976
2013-05-27 17:57AugustoMauchStatusresolved => closed
2013-05-27 17:57AugustoMauchFixed in Version => 3.0MP24
2013-05-28 23:56hudsonbotCheckin
2013-05-28 23:56hudsonbotNote Added: 0059005

Notes
(0058967)
hgbot   
2013-05-27 15:48   
Repository: erp/devel/pi
Changeset: d8cc7de67a13f33aeda7df418ca2f56021fd8d4a
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Mon May 27 19:16:03 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/d8cc7de67a13f33aeda7df418ca2f56021fd8d4a [^]

Fixes Issue 0023915: Java class name for a table cannot contain spaces

Added business event handler to validate that java class name in tables cannot contain spaces.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
A modules/org.openbravo.client.application/src/org/openbravo/client/application/event/TableEventHandler.java
---
(0058976)
AugustoMauch   
2013-05-27 17:57   
Code reviewed and verified in pi@8a750c29825c
(0059005)
hudsonbot   
2013-05-28 23:56   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/4ecad5b5150f [^]

Maturity status: Test