Create DAO using hibernate in few clicks
Hibernate is a high-performance Object/Relational persistence and query service which is licensed under the open source GNU Lesser General Public License (LGPL) and is free to download. Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but also provides data query and retrieval facilities. So here I'm going to describe how to generate POJO( Plain Old Java Object ) from database and corresponding DAO ( Data Access Object ) to manipulate/query tables programming way. I'm using Eclipse Mars in this example. Step 1 : Install JBoss tool from Eclipse Market Place which has a Eclipse plugins for Hibernate Help->Eclipse Marketplace Step 2 : Create a Maven Project as shown Select Artifact type as maven-archetype-quickstart then click Next Enter GroupId , artifact Id and package name then click Finish which will c...