facebook

forward engineering results in method code get lost

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #263217 Reply

    gbeutler
    Member

    Hi,

    during generating code from a uml model code inside of methods is deleted.
    A small example:

    Code before forward engineering:

    public void setNewAttribute(int newAttribute) {
    this.newAttribute = newAttribute;
    }

    Code after forward engineering:

    public void setNewAttribute(int newAttribute) {
    }

    How can I avoid that existing code is modified?

    Thanks in advance and best regards,

    Guido

    #263272 Reply

    Riyad Kalla
    Member

    Guido,
    We appologize for the inconvenience, the UML tool at this time will overwrite your existing files, removing any custom code. We are working on more intelligently supporting generation to leave existing code alone and not overwrite it.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: forward engineering results in method code get lost

You must be logged in to post in the forum log in