O'Reilly logo

Developing Applications with Java™ and UML by Paul R. Reed

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating Code

Now it's time finally to generate some code out of our modeling tool. The process is relatively easy and straightforward. We begin by opening the class diagram and highlighting the classes that the EJB conversion wizard created for each of the three classes Address, Role, and Customer. The total should be nine classes (twelve if you count the three primary-key classes, which we won't use). Now do the following:

1.
Select Tools.
2.
Select Java / J2EE.
3.
Select Project Specification….

What should appear is a dialog box that looks like Figure 12-8. For the Classpath tab you will find a listing of classpaths. This will be important because a prompt will appear shortly that will want to know how to map between classes and where ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required