What is a SessionFactory? Is it a thread-safe object?
Submitted by: AdministratorSessionFactory is Hibernates concept of a single datastore and is threadsafe so that many threads can access it concurrently and request for sessions and immutable cache of compiled mappings for a single database. A SessionFactory is usually only built once at startup. SessionFactory should be wrapped in some kind of singleton so that it can be easily accessed in an application code.
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. |
