hibernate在配置文件中配置多个的问题,请熟悉的知晓一声
下面的是我的配置文件
<?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 file - Do not edit! -->
<hibernate-configuration>
<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory>
<!-- properties -->
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="show_sql">true</property>
<property name="connection.username">sa</property>
<property name="connection.password">123</property>
<property name="connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
<property name="connection.url">jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=sql</property>
<!-- mapping files
<mapping resource="hibernate/second/Cource.hbm.xml"/>
<mapping resource="hibernate/second/CourcetecherConnection.hbm.xml"/>
<mapping resource="hibernate/second/SamDataauthconfig.hbm.xml"/>
<mapping resource="hibernate/second/SamRole.hbm.xml"/>
<mapping resource="hibernate/second/SamRolesfuncrel.hbm.xml"/>
<mapping resource="hibernate/second/SamUser2usegrouprel.hbm.xml"/>
<mapping resource="hibernate/second/SamUsergroup2rel.hbm.xml"/>
<mapping resource="hibernate/second/SamUsergroup.hbm.xml"/>
<mapping resource="hibernate/second/Student.hbm.xml"/>
<mapping resource="hibernate/second/StudentcourceConnection.hbm.xml"/>
<mapping resource="hibernate/second/StudenttecherConnection.hbm.xml"/>
<mapping resource="hibernate/second/Techer.hbm.xml"/>
<mapping resource="hibernate/second/TecherclassConnection.hbm.xml"/>
<mapping resource="hibernate/second/Tuser.hbm.xml"/>
-->
</session-factory>
</hibernate-configuration>
现在的问题是我想把这些配置文件打包成一个jar文件,现在怎么在配置文件中引入这个jar文件,从而来用这
些配置文件,因为数据库大了不可能写这么多<mapping resource />啊,
请指教