<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="configLocation"> <value>hibernate.cfg.xml</value> </property> </bean>
先のsessionFactoryの設定に、以下のプロパティを追加します。
<property name="configurationClass"> <value>org.hibernate.cfg.AnnotationConfiguration</value> </property>
この記事は
現在のアクセス:20129