⟩ Write a singleton program?
Having single instance through out the application.eg.: Loggers
Having single instance through out the application.eg.: Loggers
What is a Session? Can you share a session object between different theads?
What are the benefits of detached objects?
What is a SessionFactory? Is it a thread-safe object?
How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?
What are the pros and cons of detached objects?
What is the difference between the session.get() method and the session.load() method?
What is the difference between the session.update() method and the session.lock() method?
What are the ORM level?
What are the general considerations or best practices for defining your Hibernate persistent classes?
How would you reatach detached objects to a session when the same object has already been loaded into the session?