Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010921Openbravo ERP00. Application dictionarypublic2009-10-09 12:032009-12-02 09:21
networkb 
alostale 
highmajoralways
closedno change required 
5
2.50MP6 
2.50MP9 
Core
No
0010921: If the java package of a module is modify after do some developments, the ad_model_object is not updated
If the java package of a module is modify after do some developments, the ad_model_object is not updated with the new packages
so the developments don't work
-Create a module with a package name
-Add a development, for example a new report with his mapping
-Change the javapackage of the module
-See that the the mapping is not change according the new javapackage
No tags attached.
related to feature request 0011431 closed alostale Complete modularity checks 
Issue History
2009-10-09 12:03networkbNew Issue
2009-10-09 12:03networkbAssigned To => rafaroda
2009-10-09 14:03psarobePriorityimmediate => high
2009-10-09 14:03psarobeStatusnew => scheduled
2009-10-09 14:03psarobeAssigned Torafaroda => alostale
2009-10-09 14:03psarobefix_in_branch => pi
2009-10-22 10:04networkbTarget Version2.50MP8 => 2.50MP9
2009-10-22 10:04networkbfix_in_branchpi =>
2009-11-17 07:54alostaleNote Added: 0021897
2009-11-17 07:54alostaleStatusscheduled => closed
2009-11-17 07:54alostaleResolutionopen => no change required
2009-11-18 00:00anonymoussf_bug_id0 => 2899458
2009-11-20 09:55alostaleNote Added: 0022047
2009-11-20 09:55alostaleRelationship addedrelated to 0011431
2009-11-23 15:47networkbNote Added: 0022115
2009-12-02 09:21alostaleNote Added: 0022348

Notes
(0021897)
alostale   
2009-11-17 07:54   
This change shouldn't be automatically done. It would require not only changing the application dictionary mapping, but also the actual packaging in java files this would make the automatic process quite dangerous.
(0022047)
alostale   
2009-11-20 09:55   
A verification is going to be implemented when exporting obx to ensure that at that time everything has been fixed (0011431)
(0022115)
networkb   
2009-11-23 15:47   
@alostale: If an automatic process is quite dangerous, changing the mappings manually won't be also dangerous? Won't be better to control this process from Openbravo side?
A way to solve it could be to not allow modifying the javapackage if there are elements with a mapping defined
(0022348)
alostale   
2009-12-02 09:21   
Yes, it is dangerous but it is allowed because it is possible at some point you decide to change the module's java package.

It cannot be automatically done because it requires anyway to repackage the java classes in the new package and this is always better done manually (you can use you IDE to facilitate the work).

After the commit of issue 0011431 if you modify your java package but not the packages for the rest of elements you will get a warning when you compile and you will not be able to package the module as obx file till you don't fix it.