120k views
5 votes
What is the minimum number of beans needed in the xml file to integrate Spring and Hibernate assuming that you must use the xml to wire beans, and transaction management by Spring is required?Select one:a. 2b. 3c. 4d. 1

User Arelis
by
6.8k points

1 Answer

1 vote

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:

  1. Data Source
  2. Hibernate Transaction Manager
  3. Session Factory

These are used to integrate the xml file spring.

User Bobharley
by
6.5k points