J2EE Interview Questions and Answers
J2EE Interview Questions and Answers
TOP 20
by Yasser R Shaikh | Jan 6, 2014 | Interview Questions & Answers | 0 comments
Applets
Application clients
the metadata that describes the mapping between the objects and
the database. It works by transforming the data from one
representation to another.
11. What is the diff erence between save() and saveorupdate() in
Hibernate ?
my_cursor;
END;
Invoking it from Hibernate requires mapping the Stored Procedure in
the Person class.
<sql-query name="SP_agenda" callable="true">
<return alias="ev" class="Person">
<return-property name="id" column="id"/>
<return-property name="name"
column="person_name"/>
<return-property name="surname"
column="person_surname"/>
<return-property name="address"
column="person_address"/>
</return>
{ ? = call agenda() }
</sql-query>
Then, you can execute the procedure just like a normal Query:
Query query = session.getNamedQuery("SP_agenda");
List results = query.list();
14. What are the benefi ts of using a ORM?
More Productive
Easily Maintenance
Better Performance
Vendor Independent
15. What are the Core Interfaces of Hibernate Framework ?
Session Interface
SessionFactory Interface
Configuration Interface
Transaction Interface
<classname>.hbm.xml
17. What is the fi le name of Hibernate Confi guration fi le?
hibernate.cfg.xml
18. Hibernate is Database Independent. Explain how ?
Connect Timeout
Pooling