1. Difference between SQL and HQL
2. Why is hbernate useful
3. How is it used step by step
Mapping is done in .hbm.xml
applicationContext-hibernate.xml
An ApplicationContext provides the following functionalities:
* Bean factory methods, inherited from ListableBeanFactory. This avoids the need for applications to use singletons.
* The ability to resolve messages, supporting internationalization. Inherited from the MessageSource interface.
* The ability to load file resources in a generic fashion. Inherited from the ResourceLoader interface.
* The ability to publish events. Implementations must provide a means of registering event listeners.
* Inheritance from a parent context. Definitions in a descendant context will always take priority. This means, for example, that a single parent context can be used by an entire web application, while each servlet has its own child context that is independent of that of any other servlet.
Things to be defined in the applicationContext
DriverManagerDataSource
LocalSessionFactoryBean --
HibernateTransactionManager
DAOImplementation
TransactionProxyFactoryBean
Thursday, June 7, 2007
Hibernate
Posted by iCehaNgeR's hAcK NoteS at 8:36 PM
Subscribe to:
Post Comments (Atom)
0 Comments:
Post a Comment