With the project selected in the Project Explorer, choose Hibernate section that was added by the tools (Figure 11-12), and select Hibernate Console Configuration. (This is where you’ll also be able to choose to create a new configuration file, or XML mapping, as well as reverse engineering configuration files, which we won’t cover in this book.) Click to proceed with setting up the tools for your project.→ → , expand the
Figure 11-12. New Eclipse wizards offered by the Hibernate Tools
If you’re still using old-school properties files to configure Hibernate, you’d use the “Property file” field, found above the one we used in this example.
The Hibernate Console Configuration window appears (Figure 11-13). Tell the tools how to find your Hibernate configuration file by clicking on the corresponding button, and locating the file within the project. (This is automatically set up for you when you use the configuration file wizard to create it in the first place, and the latest version of the tools seems to be smart enough to find it automatically in the project structure we’ve been using for the code examples in this book.)
Figure 11-13. Setting up a Hibernate Console configuration
The rest of the settings on this tab can be ...