Saturday, April 3, 2010

Frameworks hit back


Hibernate the catchy ORM tool heard everywhere now a days in the business market. Why so? Whats that dragging people towards hibernate or any other ORM tool?

The very simple reason behind this is SIMPLICITY. Any one who comes out into the market and tells the developers "BOSS!!! I have a easy solution for your problem" is always entertained and encouraged. For example, Spring, Struts, Hibernate and many more to come.

Strictly speaking, they did not do any magic they just followed what they studied in OOPs in their graduation or whatever. Yes, your guess is right. Abstraction is what I am talking about. The gurus of any frameworks you take, they just abstracted or hided the underlying details which the developer is not bothered about.

For instance, a developer wants to connect to a database and retrieve the data to populate his UI form has to change the same code if the database changes or schema changes. But is this right??

If some one says " Hey Developer, I will take care of your DB related transactions, you just take care of your business logic", how happy the developer will be?

Thats exactly what hibernate or any ORM tool does. ORM is explained in the JPA specification.

ORM tools actually does a lot in the background for the developers. Some of the features at a glance are Persistence, Mapping, Inheritance, transactions and many more...


1 comment: