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 ...

Get Developing Applications with Java™ and UML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.