Thursday, 28 August 2014

Fetch Whole Database in one Query in hibernate

Hibernate is widely used ORM tool for java. It have lot's of Awesome feature and tricks to manage Entities,
Implicit Inheritance is one of them. You can use a parent to fetch some entity and it will load it's some entities.

Every entity is sub class of Object class. If you create a criteria for Object class you will get all the entities data.