Basics of Hibernate Basics

Configuration (C)

  1. An instance of configuration allow the application to specify the properties and mapping documents necessary to build Session Factory.
  2. Usually an application will create a single Configuration. Build a single instance of Session Factory.
  3. The configuration is meant to be an initialization-time object

Session Factory (I)

  1. Immutable
  2. Thread safe
  3. Usually an application has a single session factory instance per database
  4. Main purpose is to obtain session from it.

Session (I)

  1. Short lived
  2. Not thread safe.
  3. Its better to create a new session for each new request
  4. It represents a conversation between and application and database.

Transaction (I)

  1. Short lived
  2. Not thread safe
  3. It represents atomic units of work.

About sivateja

I am a professional graduate..I am passionate about Latest Technology.
This entry was posted in Uncategorized, Hibernate and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s