Book a Demo

Author Topic: Problem with synchronization  (Read 4443 times)

barwniak

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Problem with synchronization
« on: March 13, 2014, 07:11:59 am »
I'm user EA ver. 9.3. My project is saved in Oracle Repository. I've created package Class. In this package I've made synchronization with source code. EA created model. Now I want to make a new synchronization but into different package. Every time when i'm doing synchronization in new package EA updates old package and new still is empty.
I don't want to delete old package.
Any solution?

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Problem with synchronization
« Reply #1 on: March 13, 2014, 10:27:26 pm »
Hello,

I'm not sure I got the right picture.

The usual procedure is to import code into EA. After changes you synchronize the wanted classes.

If you import code for an existing class (name is important, not the location) EA will update this class. If no one exists it creates a new one.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

barwniak

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Problem with synchronization
« Reply #2 on: March 14, 2014, 05:10:21 am »
OK. But does this means, that only link between code and class model in diagram is name of class?
I'm not sure but in my diagram exists other classes with the same name (in other package) and that class didn't updated after synchronization.
But if you're rigth, that's enough change class name and will be OK.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Problem with synchronization
« Reply #3 on: March 14, 2014, 06:24:05 am »
Hello,

it's no problem to have the same name more than once. Synchronization works. Have a look in the properties, filename  and you see the associated file.

Synchronization works as expected. But think about the options of synchronize.

If you import code EA uses the name. What you can do:
  • Create a class
  • Set the filename in properties to the file
  • Synchronize with code (look at the settings)

Code generation is a little tricky.

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

barwniak

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Problem with synchronization
« Reply #4 on: March 14, 2014, 07:20:20 pm »
But filename properties is empty. So I don't know where is association between sourcecode and model.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Problem with synchronization
« Reply #5 on: March 14, 2014, 08:15:35 pm »
Hello,

if you import source code EA updates the filename property.

It's up to you to fill an empty filename. Click the three dots.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

barwniak

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Problem with synchronization
« Reply #6 on: March 14, 2014, 09:22:23 pm »
OK. Problem resolved. Terrible mistake. My source code directory not included all files, so synchronization wasn't complete.