|
From: Greg R. <gr...@us...> - 2004-04-30 20:38:58
|
Update of /cvsroot/jgatms/jgatms-core/config/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1375/config/test Added Files: hibernate.cfg.xml Log Message: Added Hibernate configuration for testing. The Production config file will be modified to get the connection from a data source. --- NEW FILE: hibernate.cfg.xml --- <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd"> <hibernate-configuration> <!-- a SessionFactory instance listed as /jndi/name --> <session-factory name="hibernate/sessionFactory"> <!-- shared properties --> <property name="show_sql">false</property> <property name="use_outer_join">true</property> <property name="jta.UserTransaction"> java:comp/UserTransaction/ </property> <!-- properties for this SessionFactory only --> <property name="connection.driver_class">org.postgresql.Driver</property> <property name="connection.url">jdbc:postgresql:jgatms</property> <property name="connection.username">greddin</property> <property name="dialect">net.sf.hibernate.dialect.PostgreSQLDialect</property> <mapping resource="State.hbm.xml"/> <mapping resource="Question.hbm.xml"/> <mapping resource="Response.hbm.xml"/> <mapping resource="SkillLevel.hbm.xml"/> <mapping resource="Skill.hbm.xml"/> <mapping resource="SkillProfile.hbm.xml"/> <mapping resource="Member.hbm.xml"/> </session-factory> </hibernate-configuration> |