Hi,
I use Eclipse to build my .hbm.xml files.
But now i dont know what / how i can put thoses ones in the bean sessionFactory.
Currently i've put the hibernate.cfg.xml file but i meet a dataaccess problem when i try to acces one of my tables.
Does someone know how i can put all my .hbm.xml in this bean ?Code:<!-- Hibernate SessionFactory --> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource"/> <property name="mappingResources"> <value>hibernate.cfg.xml</value> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">${hibernate.dialect}</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.generate_statistics">true</prop> </props> </property> <property name="eventListeners"> <map> <entry key="merge"> <bean class="org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener"/> </entry> </map> </property> </bean>
or do i have to generate one .hbm.xml from all the others ?
regards.


Reply With Quote
Too many people ask questions and never bother updating their forums when they solved it themselves.
Which distro? I am constantly switching between ubuntu, gentoo and suse 
