Online updates
Open the Eclipse tool, select the Help---Install new software----Enter the URL, as we will install Hibernate tools to build reverse engineering, enter http://download.jboss.org/ Jbosstools/updates/development Select Hibernate tools----Install the update.
Manual Installation
In most cases when using hibernate development, it involves the editing of its XML configuration file, especially the. Cfg.xml (configuration file) and Hbm.xml (relational mapping file). To make it easier to use this framework, the installation of its plug-in is necessary.
First, download the Hibernate framework plugin: JBOSS Tools
Open the link and go to http://tools.jboss.org/downloads/overview.html.
Here you can see a series of different versions of the plugin, which can be downloaded according to the blogger's own eclipse version number.
Of course, it can also be downloaded not consistent with its version (also supported in the previous version) since 4.2 its hibernate plugin is not separate, bloggers are not consistent with their own version of Eclipse
The eclipse version of this machine is mars.2 release (4.5.2), the version of Hibernate plugin under blogger is: 4.1.2.final
Download the plugin Now:
Two-install plug-in
Open Eclipse--->help---->install New software----->add---->archive (Find your plugin-open)------>ok------> Checked JBoss Tools hibernatetools Nightly Build Update Site
----->next-----Wait for some time---->next----->next----->i Accept ...---->finish------> Start Installation Install Software------> After installation will ask you if you want to restart Eclipse, click OK (need restart eclipse)
After rebooting, you can use this plugin ...
① download the necessary plugins via the network, such as the URL of the Hibernate tools plugin we are installing here:
http://sourceforge.net/projects/jboss/files/JBossTools/JBossTools3.1.x/ Hibernatetools-3.3.0.v201003050540r-h56-ga.zip/download Download the file.
② (direct installation method) after extracting the files, copy the plugins and features folders into the plugins and features folders, respectively, under the Eclipse installation path (or the storage path currently in use). Restart Eclipse. (This method is generally not recommended)
③ (extended installation release) after extracting the files, create a new folder named Links under the Eclipse installation path (or the current use of the storage path), create a new Hibetnate.link file and Eclipse folder under links. Put the extracted plugins and features folders in the Eclipse folder. The main contents of the new Hibetnate.link file are:
Path=<f:/tkyky/eclipse/links/eclipse>
Restart the Eclipse tool.
- A method of reverse engineering using hibernate tools in MyEclipse.
1. Create a new project, build packages and folders;
2. Build a database that needs to be connected;
3. Configure database information, open the MyEclipse tool, select Windows---Open Perspectives---myeclipse database
Explore command, file configuration;
4. Select the database type in the open new database connection DRIVER, set the database driver name (writable), set the URL of the database link, username and password, add the JDBC Bridging jar package in Add jars, DRIVER ClassName generally keep the default, click Finish.
5. Add hibernate support. Select Project, right-click---myeclipse-add hibernate capabilities, tick Hibernate 3.2 core,---- Select Next---Select the storage path for the Hibernate.cfg.xml file----Select Next----in the use JDBC driver, Select the driver name that you previously set----Select Next---Choose the path to place the Sessionfactory (can be written)----Finish.
6. Reverse engineering Start, open the database Explore view, select the databases to reverse production, double-click, select Database or corresponding table, right----hibernate reverse engineering, reverse set General choice. Hbm.xml and Pojo. Installing JBoss Tools in Eclipse Juno, integrating hibernate
The integration of Hibernate tools in Eclipse helps developers generate mapping files, comment code, and reverse engineering based on the database.
Hibernate tools, the core component of JBoss Tools, has been bundled with JBoss tools, and Hibernate tools has been installed accordingly. I. Help->install installation in New software
First, find the Hibernate/jboss tool that corresponds to the eclipse version
Find the version in Http://www.jboss.org/tools/download.
Eclipse 3.6/helios Download JBoss Tools 3.2
Eclipse 3.5/galileo Download JBoss Tools 3.1
The eclipse version I used is Juno.
Install in Help->install New software in Eclipse.
Find the appropriate version of Juno on the top site
The connection after the point is the download connection: http://download.jboss.org/jbosstools/updates/stable/juno/
Use the above link to find the Hibernate tool download in the install New software in Eclipse. Two. Find the appropriate version in Eclipse Markeptplace
Help->eclipse Markeptplace in Eclipse,
Find the JBoss Tools (Juno) version in Markeptplace, click Install,
Select components
We only need hibernate tools to be necessary, and we can choose other components according to our own circumstances, but selecting too many components may lead to a long download time, Next,
Choose Accept after Finsh, wait for download install,
Three. Offline installation
1. Find the corresponding version of the offline package download in the website http://www.jboss.org/tools/download
2. After the point in, such as
3. After downloading the offline package, follow the prompts to open eclipse,Help > Install New Software... > Add... > Archive...
Select the offline installation package that you just downloaded.
Select the components you want to install, install only hibernate Tools here, select Next
Continue next after parsing is complete
Select Accept, point finsh, installing software interface appears
Four. Select one of the above installations and restart Eclipse to verify that hibernate is installed correctly.
After restarting, Windows->open Perspective->other, if the installation is complete, you can see hibernate
Eclipse installs Hibernate plug-ins and uses