Как установить два файла конфигурации? Мой код ниже.
hibe rnet .cfg. xml
<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/fetch</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>
<mapping resource="temp/hibernet.hbm.xml"/>
</session-factory>
</hibernate-configuration>
doctor.cfg. xml
<hibernate-configuration>
<session-factory>
<property name="hbm2ddl.auto">update</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/doctor</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>
<mapping resource="doctor/doctor.hbm.xml"/>
</session-factory>
</hibernate-configuration>
hibe rnet .hbm. xml
<hibernate-mapping>
<class name="temp.area" table="district_detail">
<id name="no"></id>
<property name="district"></property>
<property name="Taluka"></property>
</class>
</hibernate-mapping>
doctor.hbm . xml
<hibernate-mapping>
<class name="doctor.detail" table="detail">
<id name="id" column="id"></id>
<property name="firstname"/>
<property name="lastname" />
<property name="username" />
<property name="password" />
<property name="gender" />
<property name="phonenumber"/>
<property name="email" />
<property name="district"/>
<property name="taluka" />
<property name="license"/>
</class>
</hibernate-mapping>
структура каталогов
У меня другая схема, поэтому, пожалуйста, помогите решить эту проблему