Java Reference
In-Depth Information
<property name="sessionFactory" ref="mySessionFactory" />
</bean>
F
<bean id="myTransactionManager"
class="org.springframework.orm.hibernate3.
bbbbbbbb bb HibernateTransactionManager">
<property name="sessionFactory" ref="mySessionFactory" />
</bean>
G
<bean id="mySessionFactory"
class="org.springframework.orm.hibernate3.
bbbbbbb LocalSessionFactoryBean">
<property name="mappingLocations">
<list>
<value>classpath:net/chrisrichardson/foodToGo/domain/
hibernate/PendingOrder.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
</props>
</property>
</bean>
</beans>
Here's a closer look:
B
PendingOrderRepository is an instance of HibernatePendingOrderRepository ,
which is injected with the HibernateTemplate .
RestaurantRepository is an instance of HibernateRestaurantRepository , which is
injected with the HibernateTemplate .
PlaceOrderFacadeResultFactory is an instance of the HibernatePlaceOrderFacade-
ResultFactory .
HibernateTemplate is an instance of HibernateTemplate , which is injected with a
Hibernate SessionFactory .
The myTransactionManager bean is an instance of HibernateTransactionManager ,
which is configured to use the SessionFactory .
mySessionFactory creates a Hibernate SessionFactory using several mapping
files, including PendingOrder.hbm.xml.
C
D
E
F
G
Search WWH ::




Custom Search