Can we have more than one session-factory in single hibernate.cfg.cml file as below code?
Code:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
<session-factory name="monitor">
.
.
</session-factory>
<session-factory name="horse">
.
.
</session-factory>
</hibernate-configuration>
Thx in advance