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.
|