11. A sample Hibernate Web Application using Servlets
By: Felix : 2010-12-29
Description: A Hibernate web application uses Session and Transaction almost like a standalone application. However, some common patterns are useful. You can now write an EventManagerServlet. This servlet can list all events stored in the database, and it provides an HTML form to enter new events.
Read the full article
 
12. Some Basic APIs in Hibernate
By: Felix : 2010-12-29
Description: Here are quick discussions about some of the API objects in Hibernate.
Read the full article
 
13. Contextual sessions in Hibernate
By: Felix : 2010-12-29
Description: Most applications using Hibernate need some form of "contextual" session, where a given session is in effect throughout the scope of a given context. However, across applications the definition of what constitutes a context is typically different; different contexts define different scopes to the notion of current. Applications using Hibernate prior to version 3.0 tended to utilize either home-grown ThreadLocal-based contextual sessions, helper classes such as HibernateUtil, or utilized third-party frameworks, such as Spring or Pico, which provided proxy/interception-based contextual sessions.
Read the full article
 
14. Programmatic configuration in Hibernate
By: Felix : 2010-12-29
Description: An instance of org.hibernate.cfg.Configuration represents an entire set of mappings of an application's Java types to an SQL database. The org.hibernate.cfg.Configuration is used to build an immutable org.hibernate.SessionFactory. The mappings are compiled from various XML mapping files.
Read the full article
 
15. SessionFactory in Hibernate
By: Felix : 2010-12-29
Description: When all mappings have been parsed by the org.hibernate.cfg.Configuration, the application must obtain a factory for org.hibernate.Session instances. This factory is intended to be shared by all application threads:
Read the full article
 
16. Creating Connection Pool for JDBC Connections in Hibernate
By: Felix : 2010-12-29
Description: Hibernate's own connection pooling algorithm is, however, quite rudimentary. It is intended to help you get started and is not intended for use in a production system, or even for performance testing. You should use a third party pool for best performance and stability. Just replace the hibernate.connection.pool_size property with connection pool specific settings. This will turn off Hibernate's internal pool. For example, you might like to use c3p0.
Read the full article
 
17. Hibernate Configuration Properties
By: Felix : 2010-12-29
Description: The table below lists the Hibernate Configuration Properties and their purpose. For easier understanding, and example is also provided for each property.
Read the full article
 
18. Hibernate Cache Properties
By: Felix : 2010-12-29
Description: The table below lists the Hibernate Cache Properties and their purpose. For easier understanding, and example is also provided for each property.
Read the full article
 
19. Hibernate Transaction Properties
By: Felix : 2010-12-29
Description: The table below lists the Hibernate Transaction Properties and their purpose. For easier understanding, and example is also provided for each property
Read the full article
 
20. Hibernate JDBC and Connection Properties
By: Felix : 2010-12-29
Description: The table below lists the Hibernate JDBC and Connection Properties and their purpose. For easier understanding, and example is also provided for each property.
Read the full article
 

Previous      Next