How to set up basic Hibernate development environment?



We need to download a number of files to underscore file directory: My SQL GUI Tools My SQL drivers JDK 6 Hibernate Annotations Hibernate core 3.26.
First install My SQL. To do data persistence with Hibernate you need the database, do a custom installation, and there change the directory that My SQL gets installed into to underscored My SQL. You dont need to configure MySQL right now. Install the My SQL GUI Tools, just fast installation, as well. Change the folder to GUI Tools. Do a complete installation and allow that installation to go to fruition. Now install the JDK. Again install to an underscored directory. This is JDK version 6 and the whole Java environment will be installed.


Again change the directory that you installed to. Then install JRE. Open the command prompt and check if everything works properly. If so, set up Hibernate libraries. On the C driver create a new folder - hiblib. There put all your Hibernate releaded libraries that have to be on run time, on compiled time a crosspath for Java and the Java entire environment. As a temp directory there is Hibernate in core condition. Extract that to the current directory and extract Hibernate annotations. Finally extract connector J. Move all the core files into this hiblib directory. For the hibernate core all of the hibernate core files have been placed into this folder named 3.2 and we have lib directory with junk loads of stuff. All of them have to be copied and pasted to this hiblib directory. These are files which Hibernate uses to work properly. The actual jar file is hiberate 3. jar which is really a core of hibernate that should be moved into the hiblib directory. Make sure that Hibernate 3 is there. Open hibernate annotations zip with hibernate command in there which should be copied to the hiblib folder. Copy and move the actual hibernate annotation file to the hiblib directory. To connect java program to a database you need JVC drivers e.g. MySQL or DV2 drivers to be installed. Than install JDK 1.6. With everything installed you are ready to write some codes and test if everything works properly.