Explanation:
Hibernate includes a query resultset cache that works in tandem with the second-level cache.
Explanation:
Yes, SessionFactory is thread-safe, and numerous threads can access it at the same time.
Explanation:
The term "lazy loading" refers to a strategy in which objects are loaded only when they are needed.
Explanation:
Hibernate generates the necessary SQL for the selected database when this property is set.
Explanation:
Query objects retrieve data from the database and construct objects using SQL or Hibernate Query Language (HQL) strings. A Query instance is used to bind query parameters, limit the number of results returned by a query, and then execute the query.
Explanation:
Persist does not return anything after saving the instance, whereas save saves the object and returns the instance's id.
Explanation:
Hibernate recognizes the @Id annotation on a field and thinks that during runtime, it should be able to access attributes on an object directly through fields.
Explanation:
When it comes to ORM vs JDBC, all of the above is true.
Explanation:
The read-only concurrency method is appropriate for data that does not change. It should only be used as a source of information.