Answer:
3 beans required in xml file to integrate spring and hibernate.
Step-by-step explanation:
Beans
The objects that are configured to data to supply to the container is called beans. When we want to integrate Spring to with hibernate, we provide the information related to initiation of bean. Information related to intiation of the bean can be data source, session time, session factory, transaction manager etc. In this case we required three beans that are given below:
- Data Source
- Hibernate Transaction Manager
- Session Factory
These are used to integrate the xml file spring.