Book a Demo

Author Topic: Domain Model Datatypes  (Read 4934 times)

cg.schaefer

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Domain Model Datatypes
« on: November 06, 2008, 03:35:39 am »
hi,
we are new to ea, and evaluating it for use in our projekt.

we want to have a domain model (pim) and then transform to a DDL, and transform or generate to java.

a.) Are there any exinsting platform independent datatypes for use in a domain model ?

b.) Where is the list of all available common types ? and can they be used for modeling ?

When we generate a custom Code Datatypes e.g. Domain-Language it basically works, but:

e.) Where then do we specify the mapping of our domain language types to the jave datatypes. or do we have to re-write the transformation templates ?

f.) the Domain Language Datatypes are not transformed correctly to DDL. We also miss the mapping from our language to the DB-Language.

g.) even in a new dummy model the modeler takes for example boolean but the DDL does not transform it to something correct for oracle e.g.

h.) the modeller simply takes any string as type. but then it is also not recognised somewhere.

i.) java tyes are missing for example Date, BigDecimal ....

thanks!

lg chris




Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Domain Model Datatypes
« Reply #1 on: November 06, 2008, 08:27:20 am »
i. You can import them from binary or source.

cg.schaefer

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Domain Model Datatypes
« Reply #2 on: November 06, 2008, 06:57:34 pm »
import or not.
that does not answer any of our points.
thanks.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Domain Model Datatypes
« Reply #3 on: November 06, 2008, 09:35:22 pm »
a) When (in the "Tools - Options" dialog) you set the default language (for the node "Source Code Engineering") to "<none>", you are left with a couple of datatypes like "Boolean, String, Integer". I don't know where these are defined though. However you can define your own language and set up datatypes for it in the "Settings - Code Datatypes" dialog. Same with database datatypes.

So if using language = "<none>" doesn't work for you, you may want to define your pseudo-language (like language "Analysis" in Rose) for you PIMs.

e, f) Guess you'll have to fiddle with the templates. Anyway, when you define your datatypes, you can fill a field "Common Type" for each of them; this could be the mapping you're looking for, but I'm not sure since I use neither transformations nor code generation.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Domain Model Datatypes
« Reply #4 on: November 06, 2008, 11:46:00 pm »
a) They are defined as primitive types in UML.
No, you can't have it!

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Domain Model Datatypes
« Reply #5 on: November 07, 2008, 12:17:03 am »
Quote
They are defined as primitive types in UML.

Ah yes, but that's only Boolean, Integer, String and UnlimitedNatural. For a PIM you'd probably want some more like Float, Date, Time and things, so I guess an "Analysis" language would be the way to go.

cg.schaefer

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Domain Model Datatypes
« Reply #6 on: November 07, 2008, 12:30:21 am »
Quote
Quote
They are defined as primitive types in UML.

Ah yes, but that's only Boolean, Integer, String and UnlimitedNatural. For a PIM you'd probably want some more like Float, Date, Time and things, so I guess an "Analysis" language would be the way to go.

When I define a custom programing language it does not map do DDL correclty. the mapping or common types are not dokumented well.

when i define a custom language, than the standard mapping to e.g. java or C# does not work at all.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Domain Model Datatypes
« Reply #7 on: November 07, 2008, 11:16:21 pm »
In the specific case of DDL - not a 'programming' language - EA does not appear to adhere (too closely) to the UML core definition. This is not really a defect in EA, since UML does not deal with data types in the same sense as as database.

Unfortunately that really doesn't help here...
No, you can't have it!