Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: ZoranPavlovic on October 11, 2012, 09:56:09 pm
-
Hi 2 All,
I don't know is it possible:
doing reverse engineering, I made tables, and now have to go back to create classes. The problem is, that some of the tables have 20-30 fields, and it is really touhg job, copy - paste fields (not all, but still much) into classes.
is there any automation, that I can revert Table object, into a class ?
thanks in advance
-
You can drag attributes (your fields in your tables) from the project browser onto your class on a diagram.
That will create a copy of that attribute in the class.
And since the project browser supports multi-select, that is probably the fastest way to do that if your classes already exist.
Otherwise you can create a copy of the whole table using copy element(s)/paste element(s) in the project browser.
Geert
-
Excellent ! ..many thanks Geert.
the only problem is, that any attribut ,which I drag-drop from table into a class is public (+) but should be private (-)
anyhow .. it is not so big problem as copy-paste hundred of fields I did up to now.
regards and thanks once again
-
Also take a look at the Sparx Logical and Conceptual MDA Transforms on the community website:, specifically The Physical to Logical transform.
http://community.sparxsystems.com/resources/code-templates/data-modeling-logical-and-conceptual-mda-transforms