Hi,
Thanks for the reply.I have tried in the below manner,still i observe the same problem.
My xml looks like this after adding mapping class tag.
Code:
<?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>
<mapping class="com.erm.beanmodules.UserAccountParameter"/>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/employeeresourcemanagement</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">myadmin</property>
<property name="hibernate.connection.pool_size">100</property>
<property name="hibernate.jdbc.batch_size">0</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Mapping files -->
<mapping resource="adminaccount.hbm.xml"/>
<mapping resource="useraccount.hbm.xml"/>
</session-factory>
</hibernate-configuration>
2 xml files are mapped in resources one is with admin and the other is with useraccount which is creating is actual problem.
In the sessionfactory class i am using something like this.
Code:
sessionFact = new Configuration().configure().buildSessionFactory();
Could you please help me on the same..
regards,
Viswanadh.