Hibernate is an ORM tool that is used by various applications to reduce the effort of writing Database interaction code. It is a kind of becoming de-facto for various database tasks. So it becomes important for most of the organisation in the Java JEE space that there development team is well versed with this technology. Here I would try to list various questions that might be asked on Hibernate technology.
Question 1: What is ORM?
ORM is object relational mapping. It is the automated process for persisting Java objects to relational database.
Question 2: What are the ORM levels?
Main ORM levels are:
Hibernate is a pure Java ORM tool that maps the POJO's to the relational database tables using (XML) configuration files. It helps in reducing the effort of a Java Developer to produce the code that perfomrs relational database tasks.
Question 1: What is ORM?
ORM is object relational mapping. It is the automated process for persisting Java objects to relational database.
Question 2: What are the ORM levels?
Main ORM levels are:
- Pure relational (Stored procedure)
- Light object mapping (JDBC)
- Medium object mapping
- Full object mapping (Composition, inheritance, polymorphism)
Hibernate is a pure Java ORM tool that maps the POJO's to the relational database tables using (XML) configuration files. It helps in reducing the effort of a Java Developer to produce the code that perfomrs relational database tasks.