Example bean definition:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="dataSource"> <ref bean="dataSource"/> </property> <property name="annotatedClasses"> <list> <value>test.package.Foo</value> <value>test.package.Bar</value> </list> </property> <property name="annotatedPackages"> <list> <value>test.package</value> </list> </property> </bean>@author Juergen Hoeller @since 1.2.2 @see #setDataSource @see #setHibernateProperties @see #setAnnotatedClasses @see #setAnnotatedPackages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|