Creating a New Web Application with Hibernate Support
See Also
The Hibernate libraries and wizards to generate supporting files are bundled with the IDE.
To create a new web application with Hibernate support:
- Choose File > New Project (Ctrl-Shift-N). The New Project wizard displays.
- Under Categories select Java Web, then under Projects, select Web Application. Click Next.
- Continue through the wizard to Step 4, the Frameworks panel, and select Hibernate 3.2.5.
- Under the Hibernate 3.2.5 Configuration section of the panel, choose the database connection
for the application from the drop down list. Click Finish.
When you click Finish the IDE creates the Hibernate configuration file hibernate.cfg.xml
in a source package with the name <default package>.
The wizard also adds the Hibernate library to the project classpath.
After you create a web application with Hibernate support,
you can use wizards to generate Hibernate
mapping files,
a helper file
and POJOs from a database.
- See Also
- About Hibernate Support
- Adding Hibernate Support to a Project
- About Web Application Frameworks
Legal Notices