![]() ![]() What is the difference between first level cache and second level cache? Special Features: Hibernate supports OOPs features like inheritance, associations and also supports collections. ![]() In the case of JDBC, it throws a checked exception called SQLException thereby mandating the developer to write try-catch blocks to handle this exception at compile time. This along with the built-in transaction management system helps developers to avoid writing multiple try-catch blocks to handle exceptions. Exception Handling: Hibernate wraps the JDBC exceptions and throws unchecked exceptions like JDBCException or HibernateException.Whereas, Hibernate implicity provides this feature. It is upon the developer to write transaction management code using commit and rollback methods. Transaction Management: JDBC doesn't support implicit transaction management. ![]() A developer has to know the database-specific codes. This helps in reducing the burden on developers for writing database independent queries.
0 Comments
Leave a Reply. |