what we can't do in jdbc but can do hibernate?
Answer Posted / 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 View All Answers
Java is fully object oriented languages or not?
Have you used threads in Servelet?
Can you control when passivation occurs?
What are callback interfaces?
Should synchronization primitives be used on bean methods?
What is JTS?
Explain the different types of memory used by jvm?
What is the difference between the string and stringbuffer classes?
What’s jboss jbpm?
Difference between new operator and class.forname().newinstance()?
What is the difference between the session.update() method and the session.lock() method?
What are the different class loaders used by jvm?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
Name the class that is used to bind the server object with RMI Registry?
How is a java object message delivered to a non-java client?