What should sessionfactory be placed so that it can be easily accessed?
Answer / Tarun Agarwal
SessionFactory should be placed in a central location, such as a utility or singleton class, so that it can be easily accessed by all parts of the application needing access to the database.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which method is used to remove a persistent instance from the datastore?
How do you invoke stored procedures?
What is mapping in hibernate?
What are the disadvantages of hibernate?
How to use limit in hibernate query?
Why do we use jpa instead of hibernate?
What is the difference between one to one and one to many relationship?
Why we use hibernate?
What is the difference between update and upgrade?
What is a hibernate transaction?
Why do we need orm tools like hibernate?
What are different types of associations in hibernate?