4
« on: March 04, 2008, 08:11:55 pm »
Midnight, Have to admit, I'm not sure what you're talking about. I didn't do anything like that, at least not on purpose. There is a root package, and problematic class, User, is first painted in one sub-package and then dragged from Project Browser tree to the other sub-package to mark another association that class has. In its primary package, User class had its Default Collection Class set to one value, then its source was generated, then Default Collection Class was erased for that class, and finally Default Collection Class is set globally for Java language to a slightly different value (full class path was specified). Regardless of made changes, generating source for that class would result in x-to-Many associations being mapped using second value, except single association drawn between User class and some other class, on User class primary diagram/package. No, problematic association doesn't have Member Type set for neither of the two roles.
I agree with you Simon, something is holding that old value, but why, where, and how to clean/reset it I do not know. Right-clicking root package then selecting Code Engineering-->Reset Options for this Package, then choosing either Java or All as Where, and Java as To, and checking Reset Default Options and checking Process Child Packages - all this didn't help. I've tried deleting association, saving, restarting EA, adding association back - no luck. Same with deleting class itself - no wonder why setting Default Collection Class for that specific class didn't work as well.
All this is rather annoying. I don't understand rationale behind not having things like these having default values for specific languages. E.g. in Java, a java.util.List is most commonly used collection class, and Java 1.5+ is version of choice in most if not all new Java applications. Setting default values would make it easier for all users - ones that will use it as is, and also ones that will want to change it (it is easier to change something than to reinvent the wheel especially if that involves learning something like EA's only expressions like #TYPE#)
Thank you all for your assistance!