Author Topic: Reverse and Forward Engineering: Is It BUG?  (Read 5150 times)

zalbina

  • EA User
  • **
  • Posts: 149
  • Karma: +0/-0
    • View Profile
Reverse and Forward Engineering: Is It BUG?
« on: January 27, 2013, 08:19:09 pm »
Hi,

Today, suddenly, I found very weird thing related to the reverse engineering. I built some class with the couple functions and attributes in EA, generated source code after that. Everything seems right. I implemented my functions and performed reverse engineering procedure back to EA. Everything seems right again, BUT I desided to add some code to my functions and again generated java code from EA. Just guess what should I see in java code? That's right, CODE, BUT all my functions are EMPTIES. So, I don't know, may be I miss something in my understanding of things, or it's a BUG. I forgot to mention that it happens when I delete first generated code and generate the code again on to the same place.

Thanks.

zalbina

  • EA User
  • **
  • Posts: 149
  • Karma: +0/-0
    • View Profile
Re: Reverse and Forward Engineering: Is It BUG?
« Reply #1 on: January 28, 2013, 05:44:21 pm »
Did not nobody try to do it  :'(?

Doug Blake

  • EA User
  • **
  • Posts: 102
  • Karma: +0/-0
    • View Profile
Re: Reverse and Forward Engineering: Is It BUG?
« Reply #2 on: January 28, 2013, 08:08:26 pm »
Not everybody works their weekends, work - life balance and all!!
DGB Using 12.0.1214 / eaDocX 3.6.2.1 / MSSQL / TFS / Windows 7 / IE11

zalbina

  • EA User
  • **
  • Posts: 149
  • Karma: +0/-0
    • View Profile
Re: Reverse and Forward Engineering: Is It BUG?
« Reply #3 on: January 28, 2013, 11:25:02 pm »
OK. What does it mean for my company when the code just disappear by this forward and reverse engineering?

Some explanations, please.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Reverse and Forward Engineering: Is It BUG?
« Reply #4 on: January 29, 2013, 12:22:54 am »
I think that only your company can judge what it means to them.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Reverse and Forward Engineering: Is It BUG?
« Reply #5 on: January 29, 2013, 08:49:58 am »
By default EA doesn't reverse engineer method bodies or overwrite existing ones when generating.

Turn on the reverse engineering option on the Attribute/Operations page of the options dialog and you'll be fine.

zalbina

  • EA User
  • **
  • Posts: 149
  • Karma: +0/-0
    • View Profile
Re: Reverse and Forward Engineering: Is It a BUG?
« Reply #6 on: January 29, 2013, 06:44:28 pm »
100%. Thank you very much.