Doubt about instructions that can be implemented in Hibernate

1

Java programming language technical course test question:

  

What instructions can be used in Hibernate?

     

a- JDBC

     

b- JPA

     

c-SQL

     

d-JNDI

    
asked by anonymous 18.09.2017 / 15:09

3 answers

1

Considering "instructions" as manipulation instructions and data persistence the correct answer is:

  • C-SQL
18.09.2017 / 16:33
1

Hibernate is an Object Relational Mapping (ORM), a "relational object mapping technique that allows you to make a relation of the objects with the data they represent . "

Doing some small searches on google: JDBC - "Classes and interfaces to send SQL statements to any relational database banks". - JDB is a connector of banks, as well as hibernate, but with other techniques and implementations, allowing to execute SQL commands. ( Andremoniy, 2015 ).

JPA - "A standard Java language API that describes a common interface for data persistence frameworks" - JPA refers only to the specifications, while Hibernate is an implementation of the specifications ( Bowersox, 2012 ).

SQL - This is the default declarative search language for relational database of relational data) - SQL are the commands of the database itself. It is what is executed, either explicitly by command or "under wraps" by ORM. So this is your answer .

JNDI - "An API for accessing directory services. It allows client applications to discover and obtain data or objects through a name "- Like JDBC, JDNI allows you to connect to banks and execute SQL commands. ( jpkrohling, 2011 ).

Whenever possible, do your homework!

    
18.09.2017 / 16:52
0

HQL is the mechanism in Hibernate for setting SQL-type statements. However, I do not think it is correct to say that SQL can be read by Hibernate and HQL instead.

    
21.09.2017 / 14:29