This blog is about understanding associations,query, second level cache, query cache in hibernate. This includes the complete and simple hibernate annotation example . You just need to import the project from link Hibernate Project as java project in eclipse.This project is very simple and self explanatory. Here is the link for that ready made project.You need to just import this project in Eclipse.