Book a Demo

Author Topic: How tospecify a collection to codeGen an ArrayList  (Read 2894 times)

Mitch

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
How tospecify a collection to codeGen an ArrayList
« on: February 08, 2006, 02:13:52 pm »
Class A contains a list of Class B objects. In class A, I created an attribute to hold the collection (named "bees"), and specified that the attribute is a collection. I want the generated code to use an ArrayList to hold the class B objects like this:

class A
{
 ArrayList bees;
}

Unfortunately, EA generates this (EA adds "int"):

class A
{
  int ArrayList bees; // shouldn't put in "int"
}

I entered the following into the Attribute dialog General and Detail tabs:

Type: <blank>
Container Type: ArrayList

Is there any way I can get it to not add in the "int"?

Thanks, Mitch