Bug 1063312 - Modifying object type in Data modeler destroys inner classes
Summary: Modifying object type in Data modeler destroys inner classes
Keywords:
Status: CLOSED DUPLICATE of bug 1041760
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Data Modeler
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: ---
Assignee: Walter Medvedeo
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-10 13:43 UTC by Jiri Locker
Modified: 2014-02-10 14:15 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-02-10 14:15:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.