In case I use UML2 and after that I generate java domain classes, classes are generated, but empty.
That is what I do:
1) new java project
2) new UML2 model, insert name, finish.
3) in UML2 View:
3.1) Create a package
3.2) inside the package I create 2 domains : Book, Chapter
3.3) create Composit association from Book to Chapter
3.4) set multiplicity on Chapter side to 0..*
4) Save diagram
5) From menu -> UML2 -> Generate Java (Class are Generated)
Class files are empty:
package UMLone;
public class Book {
}
What Am I doing wrong? I tested it with different environment (Windows 7 64bit and Ubuntu 32bit).
This is my installation detail:
*** Date:
Monday, March 14, 2011 4:03:33 PM CET
** System properties:
OS=Linux
OS version=2.6.32
Java version=1.6.0_13
*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 8.6.1
Build id: 8.6.1-20101117
*** Eclipse details:
MyEclipse for Spring
Version: 8.6
Eclipse startup command=-os
linux
-ws
gtk
-arch
x86
-showsplash
-launcher
/home/andrea/Genuitec/MyEclipse for Spring 8.6/myeclipseforspring
-name
Myeclipseforspring
--launcher.library
/home/andrea/Genuitec/MyEclipse for Spring 8.6//../Common/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520/eclipse_1206.so
-startup
/home/andrea/Genuitec/MyEclipse for Spring 8.6//../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-exitdata
4618032
-install
/home/andrea/Genuitec/MyEclipse for Spring 8.6
-configuration
/home/andrea/Genuitec/MyEclipse for Spring 8.6/configuration
-vm
/home/andrea/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/bin/java
Thank you!