Book a Demo

Author Topic: How do I?  Refactor into packages easily?  (Read 4059 times)

Steven Herod

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
How do I?  Refactor into packages easily?
« on: December 12, 2008, 03:15:29 pm »
Hi all.

I've just reversed engineered a large database with about 2000 tables/views in a single database.

Now I want to use EA to organise it into logical groupings, but the Project Explorer and dragging 10s of nodes up a list of 2000 items seems painful and error prone (actually, not 'seems' it just is painful).

Is there a better way?   EA seems quite weak at mass reorganization like this....

Steven Herod

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: How do I?  Refactor into packages easily?
« Reply #1 on: December 18, 2008, 01:43:54 pm »
I guess the answer is 'no' then....

Yves C

  • EA User
  • **
  • Posts: 33
  • Karma: +1/-1
  • I love YaBB 1G - SP1!
    • View Profile
Re: How do I?  Refactor into packages easily?
« Reply #2 on: December 18, 2008, 07:45:06 pm »
I remember that in Rose there is a nice way to do this. You can "relocate" classes from a diagram in its containing package. This kind of feature would be nice to add to ea. An idea for a new addin.
Yves

Steven Herod

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: How do I?  Refactor into packages easily?
« Reply #3 on: December 19, 2008, 08:16:09 am »
I think Sparx could look more closely at Eclipse and duplicate some of its refactoring capabilities

Whilst its a great tool especially for the price, in terms of workflow, its actually faster to write Java code and reverse engineer it, than type up classes and methods in EA - and its simply a UI thing - a few small changes and it would be there....

Yves C

  • EA User
  • **
  • Posts: 33
  • Karma: +1/-1
  • I love YaBB 1G - SP1!
    • View Profile
Re: How do I?  Refactor into packages easily?
« Reply #4 on: December 19, 2008, 11:57:01 pm »
I agree with you. EA should be completed with all the functionalities that can be found in a good code management tool. That includes refactoring capabilities and other tools to analyze models, various metrics as well as a better vesion control system.
I hope that we can find some of  them in the next version.
Yves

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: How do I?  Refactor into packages easily?
« Reply #5 on: December 20, 2008, 09:57:58 am »
What kind of clues do you have about which package each table belongs in?  If it is something a human needs to make a judgment call about, then it is going to be painful regardless.  But, if there is some property on which the decision can be made, you could always do this with code running directly against the database.  I do this in loading tables from OpenEdge by providing a hook in the load code where a site can identify the package for a table and then get the package and table created in the package.