hibernate.cfg.xml 1.2 KB

12345678910111213141516171819202122
  1. <?xml version='1.0' encoding='utf-8'?>
  2. <!DOCTYPE hibernate-configuration PUBLIC
  3. "-//Hibernate/Hibernate Configuration DTD//EN"
  4. "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
  5. <hibernate-configuration>
  6. <session-factory>
  7. <property name="connection.url">jdbc:mysql://localhost:3306/anketa</property>
  8. <property name="connection.password">root</property>
  9. <property name="connection.username">root</property>
  10. <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
  11. <mapping resource="HibernateEntities/ClientsEntity.hbm.xml"/>
  12. <mapping class="HibernateEntities.ClientsEntity"/>
  13. <mapping class="HibernateEntities.GroupsEntity"/>
  14. <mapping resource="HibernateEntities/GroupsEntity.hbm.xml"/>
  15. <mapping resource="HibernateEntities/ModeratorsEntity.hbm.xml"/>
  16. <mapping class="HibernateEntities.ModeratorsEntity"/>
  17. <mapping resource="HibernateEntities/StudentsEntity.hbm.xml"/>
  18. <mapping class="HibernateEntities.StudentsEntity"/>
  19. <mapping resource="HibernateEntities/UsersEntity.hbm.xml"/>
  20. <mapping class="HibernateEntities.UsersEntity"/>
  21. </session-factory>
  22. </hibernate-configuration>