what we can't do in jdbc but can do hibernate?

Answers were Sorted based on User's Feedback



what we can't do in jdbc but can do hibernate?..

Answer / mahesh

There is nothing that hibernate can do but JDBC cannot. Basically, JDBC is the bottom layer of hibernate library. It just gives you some advance functions to perform a database operations. But at the ground level its JDBC which is directly interacting with database.

Is This Answer Correct ?    13 Yes 1 No

what we can't do in jdbc but can do hibernate?..

Answer / dinesh kumar tiwari

There are many thing we can do in hinernate automaticaly by
hibernate tools or seting hibernate properties.some I
giving below:
(1) We can migrate database just change database dielect.
(2)we can used caching
(3)if user do not know ant any SQL languge then they can
use criteria query.
(4)There is one scnerio where SQL query are failed when
want fetch obejct from db but do not know there ID.
Hibernate provide this solution using HSQL .

Is This Answer Correct ?    15 Yes 6 No

what we can't do in jdbc but can do hibernate?..

Answer / veerendra kumar

JDBC is one the technoloogy of JSE module in JAVA,but
HIBERNATE is one of the ORM tool to connect to database,its
internally uses JDBC technology providing some extra
functionalities.
1.------using JDBC to connect any database having
drawbacks,if we want to connect to database
Connection,Statement,ResultSet objects must otherwise we
cant connect here manually programmer created reference objects
-------using hibernate no need to create
Connection,Statement,ResultSet objects hibernate will
create, as aprogrammer just using that objects to connect
database,just configuration file need
2.---------using JDBC we unable to store objets directly in
databases, we need serialization for convertiong text to
object viceversa
------------using Hibernate no need directly we cand store
objects in database
3.-------as a programmer need to close con,st,rs objects in JDBC
---------no need, here Hibernate will take care for closing
con,st,rs objects
4.Comare to Hibernate JDBC is fast because its simple java
program not like big program(cfg,hbm files)

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

if i know the lenght of collection in hand, should I use Array or Arraylist? justify

1 Answers   iTrust,


Can you give me a simple example of using the requiredif validator rule?

0 Answers  


whats is stored procedure,joins

1 Answers   Photon,


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

0 Answers  


What are the different algorithms used for clustering?

0 Answers  






What is bean? Where can it be used?

0 Answers  


If i learn Java, what kind of applications can i create that will help Banking, Retail, Hotel, Logistics industry.

2 Answers  


Why JDBC has introduced

4 Answers  


explain session tracking. why we used it

3 Answers   Lionbridge,


1) which method of the RequestDispatcher cannot be called once the output is sent to the client? a. forward b. include c. both a&b 2) which interface should an object implement to get notified of changes to the list of active sessions in a web application? a. HttpSessionListener b. HttpSessionActivationListener c. HttpSessionAttributeLIstener 3) A user can select multiple locations from a list box on an HTML form, which of the following methods can be used to retrieve all the selected location? a. getParameter() b. getParameterValues() c. getParamValues() 4) which of the following methods should be used to send character text to the client? a. ServletResponse.getWriter() b. ServletResponse.getOutputStream() c. ServletResponse.getOut() 5) which implicit object is always available in a JSP page? a. exception b. session c. out 6) which inclusion mechanism doesn't include the source of the page, rather the output of the page. a. include directive b. jsp:include action c. Bothe a& b 7) which attribute of the page controls whether a page participates in session or not? a. session-allowed b. session c. isSession

1 Answers  


what is the RMI / IIOP?

3 Answers  


What are the different methods of identifying an object?

0 Answers  


Categories