What is the difference between the session.get() method and the session.load() method?
Submitted by: AdministratorBoth the session.get(..) and session.load() methods create a persistent object by loading the required object from the database. But if there was not such object in the database then the method session.load(..) throws an exception whereas session.get(&) returns null.
Submitted by: Administrator
Submitted by: Administrator
Read Online Hibernate Job Interview Questions And Answers
Top Hibernate Questions
☺ | How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects? |
☺ | What is HQL? |
☺ | Why do you need ORM tools like hibernate? |
☺ | What does ORM consists of? |
☺ | What are the general considerations or best practices for defining your Hibernate persistent classes? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |