Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Trouble with EclipseLink-Workbench-codegenerator and parameterized Collections

Hello...
..newbie-question again. ;)

I defined my classes in eclipseworkbench and used collections for something.
There I also defined the inculded items-class.

For Example:

in the class-xml-file:
<?xml version="1.0" encoding="UTF-8"?>
<class>
  <name>de.miku.mappingtest.model.TestSchema</name>
  .
  .
     <class-attribute>
        <name>objectMap</name>
        <modifier>2</modifier>
        <type-declaration>
           <type-handle>
              <type-name>java.util.ArrayList</type-name>
           </type-handle>
        </type-declaration>
        <item-type-handle>
           <type-name>de.miku.mappingtest.model.MyObject</type-name>
        </item-type-handle>
        .
        .
     </class-attribute>

In the generated TestSchema.java - file is only an unparameterized ArrayList defined:

public class TestSchema {
  private ArrayList objectMap;

public TestSchema() {
   this.objectMap = new ArrayList();
}

public ArrayList getObjectMap() {
   return this.objectMap;
}
.......


Do I forget something, that the codegenerator - do not use this infromation for parameterization or is it normaly and I have to do this by myself?

Greeting
Heiko




Back to the top