Book a Demo

Author Topic: Beginner issues  (Read 2398 times)

crony

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Beginner issues
« on: November 17, 2008, 09:04:47 am »
Hello,

I'm a french student and I'm trying to understand a bit more your product during evaluation period...

I've imported a very simple java project, then regenerate the code to see if I could use further diagrams from EA to generate clean code.

For example, my original class look like this :
Code: [Select]
package model;

/**
 *
 *
 */
public class Sportifs extends PokemonTerrestre {

      private int pulsation;

      public Sportifs(String nom, double poids, int nbpattes, double taille,
                  int pulsation) {
            super(nom, poids, nbpattes, taille);
            this.pulsation = pulsation;
      }

      public String toString() {
            return super.toString() + " et ma fréquence cardiaque est de "
                        + pulsation + "bpm";
      }
}

My regenerated class looks like this:
Code: [Select]
package model;

/**
 * @author nicolas
 * @version 1.0
 * @created 16-nov.-2008 22:21:29
 */
public class Sportifs extends PokemonTerrestre {

      private int pulsation;

      public Sportifs(){

      }

      public void finalize() throws Throwable {
            super.finalize();
      }

      /**
       *
       * @param nom
       * @param poids
       * @param nbpattes
       * @param taille
       * @param pulsation
       */
      public Sportifs(String nom, double poids, int nbpattes, double taille, int pulsation){

      }

      public String toString(){
            return "";
      }

}

 :-/

Am I doing something wrong ?

My second issue is about importing a MySQL ddb into EA. The connector is well functionning, I see all my tables, but no relations between them...I'm wondering if I have to consider EA as a "MySQL workbench" with more interactions with other elements or...

I've used the 5.1.5 ODBC connector (difers from your faq)
http://dev.mysql.com/downloads/connector/odbc/5.1.html

Parameters difers a bit also, here's a screen shot.

Sorry for those dumbs questions...and thank you for your support :)



« Last Edit: November 17, 2008, 09:12:00 am by crony »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Beginner issues
« Reply #1 on: November 18, 2008, 10:06:51 am »
To start with, you could set EA to reverse engineer method bodies into the model.  (Tools | Options | Source Code Engineering | Attribute/Operations)

You can also turn off the automatic generation of a default constructor and finalize (Object Lifetimes page, the destructor option controls the finalize method.)

crony

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Beginner issues
« Reply #2 on: November 18, 2008, 11:17:28 am »
Thank you, works perfect ! Saw that it support Action Script as well !!!

Now I'm wondering if there's a diagram who can generate this :


Hmm...Seems impossible to me, but, just in case...  ::)