Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1063312

Summary: Modifying object type in Data modeler destroys inner classes
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jiri Locker <jlocker>
Component: Data ModelerAssignee: Walter Medvedeo <wmedvede>
Status: CLOSED DUPLICATE QA Contact: Jiri Locker <jlocker>
Severity: high Docs Contact:
Priority: medium    
Version: 6.0.0CC: kverlaen, pzapataf
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-10 14:15:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Locker 2014-02-10 13:43:09 UTC
Description of problem:
I can have a class with inner class or enum modelled outside Business Central. When this is pushed into BC it can be further modified using Data modeler (e.g. adding a field, adding label). When the changes are saved the class is re-generated by Data modeler ignoring inner classes.

Version-Release number of selected component (if applicable):
CR2

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
Inner classes and enums are dropped.

Expected results:
They should be preserved.

Additional info:

Comment 1 Pedro Zapata 2014-02-10 14:15:32 UTC
Data modeler does NOT parse the code pushed externally, it just displays the result of a binary introspection. When saving, it will always regenerate the code, and therefore, losing any change outside the scope of the introspection (currently getters and setters). It doesn't currently do full code analysis and selective source code modification.

To avoid this scenario of inadvertently overwriting externally modified code, controls were added in order to detect if a file was created/modified by an external tool, as explained at https://bugzilla.redhat.com/show_bug.cgi?id=1041760

If the file is externally modified, data modeler will only display it in read only mode, avoiding any modification. Any further change to the data model must be done by using the external tool.

*** This bug has been marked as a duplicate of bug 1041760 ***