Book a Demo

Author Topic: questions  (Read 2965 times)

mdurao

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
questions
« on: December 12, 2009, 06:31:28 am »
Hello

I'm evaluating EA corporate and couldn't find a response in docs or this forum about this topics.

I'm reversing a database (db2/400) and transforming tables in classes. Is it possible that the resulting class inherit the changes made in the parent table?

About classes, is there some way to add logic (methods, variables, etc.) into the getter or setter of an attribute?

Thanks in advance
Martin

Severn

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: questions
« Reply #1 on: December 20, 2009, 01:32:06 pm »
The creators of EA thought, that Attributes are only fields, not properties.
So, if you want to model properties, you must model them as Operations, not Attributes.
That is standard behavior of EA.
So, here they break UML paradigm for own short-mind.

Well, it gives us nice diagrams and so on...
I look at this and think - what else surprises can I get from it ?
If my bookkeeper gives nice reports but makes such mistakes in accounting - I will fire him out immediately.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: questions
« Reply #2 on: December 20, 2009, 02:51:39 pm »
Quote
The creators of EA thought, that Attributes are only fields, not properties.
So, if you want to model properties, you must model them as Operations, not Attributes.
That is standard behavior of EA.
So, here they break UML paradigm for own short-mind.
[size=18]...[/size]
Hi Severn & Martin,

If you are interested in both coding language and UML properties (not quite the same thing) you may be interested in: UML Properties - quo vadis Attributes? and other, related, postings from there.

HTH,
Paolo
« Last Edit: December 20, 2009, 02:53:32 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!