Book a Demo

Author Topic: Java 5.0 generics  (Read 2208 times)

mcpeakm

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Java 5.0 generics
« on: August 22, 2005, 03:20:58 pm »
Question: I just purchased EA 5.0 and I am trying to reverse engineer my current J2SE 5.0 project.  

My project makes heavy use of Java 5 generics (e.g., Set<Order>, List<Invoice>, etc).  When I reverse engineer my classes, my generic comes in as a separate type, but EA does not seem to recognize A) that my attributes using generics are collections and B) that there is a relationship between the member type.

For example, if I have two classes Customer and Order and Customer has an attribute of type Set<Order>, I want EA to reverse engineer that and understand that there is a 0..* relationship between Customer and Order.  I doesn't seem to do that.

Am I doing something wrong, or is this just something EA doesn't do?  

Please advise.  Thanks in advance.

- Matt