Deep Dive On Java

Java J2EE Spring Web Socket Spring Messaging Spring Boot Spring REST Spring Beans Sping JPA Rabbit MQ MySQL

Tuesday, July 17, 2018

Hibernate Miscellaneous Properties

Configuration Properties:


  1. hibernate.current_session_context_class= thread( "jta", "thread", and "managed")


  • org.hibernate.context.JTASessionContext: current sessions are tracked and scoped by a JTA transaction. The processing here is exactly the same as in the older JTA-only approach. See the Javadocs for details.
  • org.hibernate.context.ThreadLocalSessionContext:current sessions are tracked by thread of execution. See the Javadocs for details.
  • org.hibernate.context.ManagedSessionContext: current sessions are tracked by thread of execution. However, you are responsible to bind and unbind a Session instance with static methods on this class: it does not open, flush, or close a Session.

2. hibernate.query.factory_class=org.hibernate.hql.internal.classic.ClassicQuery



Chooses the HQL parser implementation. 
e.g.org.hibernate.hql.ast.ASTQueryTranslatorFactory or
org.hibernate.hql.classic.ClassicQueryTranslatorFactory
Posted by Rohit Dhingra at 9:28 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2018 (9)
    • ▼  July (1)
      • Hibernate Miscellaneous Properties
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (4)
    • ►  January (1)
  • ►  2017 (4)
    • ►  December (2)
    • ►  July (2)
Simple theme. Theme images by luoman. Powered by Blogger.