The _________ system is widely used for mapping from Java objects to relations.

The _________ system is widely used for mapping from Java objects to relations.

Right Answer is:

Hibernate

SOLUTION

  • The Hibernate system is widely used for mapping from Java objects to relations.
  • In Hibernate, the mapping from each Java class to one or more relations is specified in a mapping file.
  • The mapping file can specify, for example, that a Java class called Student is mapped to the relation student, with the Java attribute ID mapped to the attribute student.ID, and so on.
  • Information about the database, such as the host on which it is running, and user name and password for connecting to the database, etc., are specified in a properties file.
  • The program has to open a session, which sets up the connection to the database.
  • Once the session is set up, a Student object stud created in Java can be stored in the database by invoking session.save(stud).
  • The Hibernate code generates the SQL commands required to store corresponding data in the student relation.
Scroll to Top