Not able to load .hbm files from the jar files
If you are not able to retrieve the data from db using hibernate then check if the .hbm files are getting loaded during start up of the application and the location specified in the session factory bean in the hibernate configuration file.
Issues faced :
Not able to retrieve the data from db using hibernate queries.
Solution :
Check if the .hbm files are getting loaded during the start up of the web application in the console.
Use the following property “mappingJarLocations” in the “sessionFactory” Bean of the config file :
Issues faced :
Not able to retrieve the data from db using hibernate queries.
Solution :
Check if the .hbm files are getting loaded during the start up of the web application in the console.
Use the following property “mappingJarLocations” in the “sessionFactory” Bean of the config file :
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="mappingJarLocations">
<list>
<value> WEB-INF/lib/jar-Name.jar </value>
</list>
</property>
</bean>
3 comments:
thanks Arun for this sharing this. Do you have any idea if hibernate can work with DB2 on Websphere Portal v7 Appreciate if you can share details here or help to send to jeffpower78@gmail.com
Taking this opportunity to wish a fabulous 2013 new year.
Cheers
Hi Jeff
I used hibernate 4.0 with DB2 and WPS 7.0. Yes it's working. If you need any details you can contact me on saurabh.ranu@gmail.com
Thanks Saurabh for sharing this info. I really appreciate if you can share your experience on any technical challenges that you faced during the integration ?
Post a Comment