Set it up in your main hibernate config file, the path to which is passed to your hibernate session factory method, something like:
Code:
SessionFactory factSession =
new org.hibernate.cfg.Configuration().configure(sPath).buildSessionFactory();
Then point sPath at your main config file that looks something like this:
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">
<hibernate-configuration>
<!-- Hibernate config -->
<session-factory>
<property .../>
<mapping resource="Path to a mapping file here"/>
<mapping resource="Path to another mapping file here"/>
</session-factory>
</hibernate-configuration>
There's loads of better docs than this elsewhere on this site and in your hibernate installation.