Hibernate uses a file by name hibernate.cfg.xml. This file creates the
connection pool and establishes the required environment.
A file named .hbm.xml is used to author mappings.
The bootstrap action is configured by using Configuration interface.
There are two types of environment to configure hibernate:
1. Managed Environment: The definitions of database operations such as
connections, transaction boundaries, security levels.
This environment is provided by application servers such as
Jboss,Weblogic,Websphere.
2. Non-managed Environment: The basic configuration template is provided
by this interface. Tomcat is one of the examples
that best supports this environment. "
đang được dịch, vui lòng đợi..