// 下階層用テンプレート #topicpath ---- //ここにコンテンツを記述します。 **Hibernateと連携 [#c2357395] ***既存のhibernate.cfg.xmlをそのまま使う [#ld4299ed] <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="configLocation"> <value>hibernate.cfg.xml</value> </property> </bean> ***Hibernate Annotationを使う [#m34a56b1] 先のsessionFactoryの設定に、以下のプロパティを追加します。 <property name="configurationClass"> <value>org.hibernate.cfg.AnnotationConfiguration</value> </property> ---- この記事は #vote(おもしろかった,そうでもない) #comment #topicpath SIZE(10){現在のアクセス:&counter;}