Book a Demo

Author Topic: Java classes as types  (Read 2553 times)

bus

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Java classes as types
« on: December 09, 2004, 05:15:06 am »
Hello,

What's the best way to place Java classes (for Example String, date ...)  as types of attributes in EA?

Thanks for help ;D

BUS

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Java classes as types
« Reply #1 on: December 09, 2004, 01:22:28 pm »
Well, the best way is open to discussion, but you can do three things that I can think of.

  • Just type the class name into the type field all the time.
  • Add them to the list of Java datatypes. (Configuration | Language Datatypes...)
  • Model them as classes in a part of your model dedicated to this purpose.


I'd lean towards the third option because if you also add them in the right package structure then you should get the import statements you want generated.  I'd also say to only add them as needed because having them all in your model means a quite large model.

Simon