Book a Demo

Author Topic: Association Class Issue  (Read 3035 times)

JohannW

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Association Class Issue
« on: June 08, 2007, 12:38:49 am »
Problem with Enterprise Architect:
Keywords: Association class, Code Engineering, Reverse Engineering

Problem: Thinking of a person as a contract worker that can do a job at many companies, a company may have many contract workers (persons) which creates a many-to-many relationship between person and company with the job as the association. The job is qualified by both the person and the company.

Using EA code services and forward engineering this works fine but when you resync the model and code this happens:
The association class forgets that it used to be an association class and we get two new associations (job to person; job to company) – which one can understand in one way but in terms of design is undesirable.

I found that if I were to hide the two new associations the diagrams would remain correct after each resync as EA remembers that these associations are hidden. This workaround does not solve the issue that EA forgets that the Job class is an association class.

How can this issue be resolved as we would really like to use EA and our model does have quite a few association classes?