![]() When you reverse-engineer the database tables, the entities will appear in the Mappings section of the configuration file. The configuration file contains connection information from the connection profile. The project now contains all the Hibernate and JDBC libraries, and the file opens in the Configuration editor. Click Next, select MySQL Connector/J from the DB Driver drop-down, enter your password, and click Finish. ![]() Type as the package name, and click Finish. Click New beside the Java package field to create a new package for the session factory class.Selecting Hibernate specification version Select 4.1 as the Hibernate specification version. Right-click the project, and select Configure Facets>Install Hibernate Facet This menu option was updated in MyEclipse 2017.You are prompted to switch to the Java perspective. Type HibernateSpringProject in the Project name field, and click Finish.Select File>New>Project, expand Java, select Java Project, and click Next.You can download the complete Hibernate/Spring project created in this tutorial if you prefer. Note: This is the same project created in the introduction to Hibernate in case you already have this project. You can enable Hibernate and Spring to any supported base projects, commonly Java or Web.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |