Hibernate - Why do you need ORM tool like Hibernate?

Why do you need ORM tool like Hibernate?

- Hibernate is open source ORM tool. Hibernate reduces the time to perform database operations. Hibernate has advantages over using entity beans or JDBC calls. The implementation is done by just using POJOs. Creating a POJO may implement the Java bean mechanism of using setters and getters methods for assigning values and they can be used to persist on the database. By using a simple mapping file, the fields of class and the fields of the table is done. This mapping file is a XML file. So the flexibility in mapping is attained, instead of hard coding. IDEs like eclipse supports to create the description files.

Why do you need ORM tool like Hibernate?

ORM tools like hibernate provide following benefits :

Improved performance : Lazy loading, Sophisticated caching, Eager loading.

Improved productivity : High-level object-oriented API, Less Java code to write, No SQL to write.

Improved maintainability : A lot less code to write.

Improved portability : ORM framework generates database-specific SQL for you.
Hibernate - What are the main advantages of ORM like hibernate?
What are the main advantages of ORM like hibernate? - Distributed transaction can simply be performed by using ORM tools...
Hibernate - What are the core interfaces of Hibernate framework?
What are the core interfaces of Hibernate framework? - Session Interface, SessionFactory interface, Configuration Interface, Transaction Interface, Query and Criteria interface...
Hibernate - Explain how to configure Hibernate.
Explain how to configure Hibernate - Hibernate uses a file by name hibernate.cfg.xml. This file creates the connection pool and establishes the required environment....
Post your comment