Book a Demo

Author Topic: My EA Trial Observations ??  (Read 3091 times)

chaluwa

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
My EA Trial Observations ??
« on: November 04, 2008, 04:57:46 am »
I am eveluating EA and have noticed some stuff that I want to be clarified on.

1. While doing data modeling why does one have to set database type for every table, it would be preferable to set the database type on the data model 'settings' so that for example, by changing it in that single 'settings' place we can generate DDL for a new target database.

2. I tried creating a simple domain model for some PHP classes and generated the code. the model showed parameters in the class diagram  thus:
Code: [Select]
 execute(context: CommandContext)

where the execute operation accepts a parameter called context that is of type CommandContext. CommandContext is of course also defined in the model. But when the code is generated, see stuff like this :
Code: [Select]
function execute($context){

}

but I expected this instead :
Code: [Select]
function execute(CommandContext $context){

}

Perhaps I am still missing the right approach to doing these things, hence this post. Cheers.
Charles Opute Odili
Xchequer Nigeria

hd

  • EA Administrator
  • EA User
  • *****
  • Posts: 312
  • Karma: +0/-0
    • View Profile
Re: My EA Trial Observations ??
« Reply #1 on: November 05, 2008, 08:04:40 am »
Quote
1. While doing data modeling why does one have to set database type for every table, it would be preferable to set the database type on the data model 'settings' so that for example, by changing it in that single 'settings' place we can generate DDL for a new target database.

1. You can set the default database from Tools | Options | Code Editors | Default Database.

2. To target a different database, refer to EA Help | Data Modeling | Data Type Conversion for a Package.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: My EA Trial Observations ??
« Reply #2 on: November 05, 2008, 08:28:38 am »
As far as generating PHP parameter types, set the PHP version to version 5 and you'll be right.  (Tools | Options | Source Code Engineering | PHP | Default Version)

chaluwa

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: My EA Trial Observations ??
« Reply #3 on: November 05, 2008, 08:06:37 pm »
Thanks for these replies, I'll try them out right away and give you status.
Charles Opute Odili
Xchequer Nigeria

chaluwa

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: My EA Trial Observations ??
« Reply #4 on: November 05, 2008, 09:09:26 pm »
These replies have worked for me, thanks again.
I'm still evaluating, so keep watching this post  ;)
Charles Opute Odili
Xchequer Nigeria