I am using JBOSSIDE v 2.0.0 beta . I already have an existing ptrohect with all hbm.xml files and the hibernateconfiguration file already created.
When i create a hibernate console configuration with my current hibernate configuration file and then try to run a qury in hql editor I get mappingnotfoundexception. All my hbm.xml files are in the same project folder but still eclipse is not able to find them.
Here is a extract from my configuration file
Quote:
<?xml version='1.0' encoding='utf-8'?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">
java:/DefaultDS
</property>
<!-- Database Settings -->
<property name="dialect">org.hibernate.dialect.Oracle9Dialect
</property>
<!-- <property name="default_schema">localDB</property>--> <property name="show_sql">false</property>
<property name="cache.use_second_level_cache">false</property> <property name="cache.use_query_cache">false</property>
<!-- JDBC Settings -->
<property name="jdbc.use_streams_for_binary">true</property> <property name="max_fetch_depth">1</property>
<!-- | Uncomment in clustered mode : use transactional replicated cache
<property name="cache.provider_class">org.jboss.portal.core.hibernate.JMXTreeCacheProvider
</property>
<property name="cache.object_name">portal:service=TreeCacheProvider,type=hibernate
</property>
-->
<!-- | Comment in clustered mode -->
<!-- <property name="cache.provider_configuration_file_resource_path">ehcache.xml
</property>
<property name="cache.provider_class">org.hibernate.cache.EhCacheProvider
</property> -->
<property name="cache.provider_class">org.hibernate.cache.TreeCacheProvider
</property>
<!-- Force the dialect instead of using autodetection --> <!-- <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property> -->
<!-- Mapping files -->
<mapping resource="AccessRightTO.hbm.xml"/>
The accessrigthtohbm.xml lie along with the configuration file but cannot be found by eclipse.
Also everything works fine when i deploy my jar with all the hbm files on my jboss server only inside eclipse it creates a problem
Please help.