![]() ![]() ![]() A session is an object that maintains the connection between Java object application and database.Lazy loading in hibernate improves the performance.Hibernate is an open-source and lightweight ORM tool that is used to store, manipulate, and retrieve data from the database.How many types of association mapping are possible in hibernate? Syntax: public Serializable save(Object o)ġ3. Return nothing because its return type is void. Returns the identifier (Serializable) of the instance. What is the difference between session.save() and session.persist() method? save() No, collection mapping can only be performed with One-to-Many and Many-to-Many.ġ2.Is it possible to perform collection mapping with One-to-One and Many-to-One? In other words, you can share it between threadsġ1. No, Session is not a thread-safe object, many threads can access it simultaneously.Mention two components of Hibernate configuration object. A criterion is added to a SQL query by using the Session.createCriteria.ĩ.List some of the databases supported by Hibernate.Ĩ. ![]() The SQL query is created with the help of the following syntax: Session.createSQLQueryħ.it provides factory methods to return these instances.Ħ. It is a factory of Query, Criteria and Transaction i.e.It provides methods to store, update, delete or fetch data from the database such as persist(), update(), delete(), load(), get() etc.It maintains a connection between the hibernate application and database.The HQL query is created with the help of the following syntax: Session.createQuery.It holds the data of second level cache that is not enabled by default. SessionFactory provides the instance of Session.Hibernate Tricky Interview Questions & Answers 1. Press here for Indian Agriculture MCQ Questionsĭetails for Hibernate Questions and Answer Quiz Name Important Links Click here for JQuery MCQ QuestionsĬlick here for Software Testing MCQ Questions The small marsupial Dromiciops gliroides “Monito del monte.Reliability on the location where hibernation takes place. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |