simple project to test hibernate setting sample of implementing relationships in java-hibernate like one-to-one, one-to-many, many-to-one, many-to-many
first install mysql5 in your machine
then create your user and a database
then grant all privileges to your user
and finally add the information to hibernate.cfg.xml file
done :)