Hibernate and it’s Architecture

Hibernate is an Object Relational mapping framework. What it does is it takes rows in relational database and turns them into java objects. If we are doing Object relational mapping in our DAO with sql it breaks unexpectedly when some mistake in query (I faced this often). So hibernate enable us to get rid of sql in DAO classes. We can do our operations with db with fewer queries and less error prone. Mappings will maps data in our java objects to the fields in relational database. We can also use annotations to do these mappings. Hibernate itself is a

Read more