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
Are we allowed to change the transaction isolation property in middle of a transaction?
How to implement RMI in Java?
What is abstract schema?
What is RMI and what are the services in RMI?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
What is the difference between a menuitem and a checkboxmenuitem?
What is the difference between RMI registry and OS Agent?
the same information whether it will connect to the database or it will be used previous information?
How database connectivity in XML is achieved?
Are enterprise beans allowed to use thread.sleep()?
Explain the different types of memory used by jvm?
Explain the advantages and disadvantages of detached objects.
What is chat area? Explain.
To identify IDL language what mapping mechanism is used?
Can I have an action without a form?