hibernate.cfg.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.driver_class">com.mysql.jdbc.Driver</property>
  9. <property name="connection.username">root</property>
  10. <property name="connection.password">admin</property>
  11. <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
  12. <property name="hibernate.connection.characterEncoding">UTF-8</property>
  13. <mapping resource="ClientsEntity.hbm.xml"/>
  14. <mapping class="HibernateEntities.ClientsEntity"/>
  15. <mapping class="HibernateEntities.GroupsEntity"/>
  16. <mapping resource="GroupsEntity.hbm.xml"/>
  17. <mapping class="HibernateEntities.ModeratorsEntity"/>
  18. <mapping resource="ModeratorsEntity.hbm.xml"/>
  19. <mapping resource="ProjectsEntity.hbm.xml"/>
  20. <mapping class="HibernateEntities.ProjectsEntity"/>
  21. <mapping class="HibernateEntities.StPrEntity"/>
  22. <mapping resource="StPrEntity.hbm.xml"/>
  23. <mapping resource="StudentsEntity.hbm.xml"/>
  24. <mapping class="HibernateEntities.StudentsEntity"/>
  25. <mapping resource="UsersEntity.hbm.xml"/>
  26. <mapping class="HibernateEntities.UsersEntity"/>
  27. <mapping resource="Project_mod_skillEntity.hbm.xml"/>
  28. <mapping class="HibernateEntities.ProjectStaffSkillEntity"/>
  29. <mapping resource="Project_skil_catEntity.hbm.xml"/>
  30. <mapping class="HibernateEntities.ProjectSkillCatEntity"/>
  31. <mapping resource="Skil_catEntity.hbm.xml"/>
  32. <mapping class="HibernateEntities.SkillCatEntity"/>
  33. <mapping resource="Skil_listEntity.hbm.xml"/>
  34. <mapping class="HibernateEntities.SkillListEntity"/>
  35. <mapping class="HibernateEntities.MatchSkilEntity"/>
  36. <mapping resource="Skil_matchEntity.hbm.xml"/>
  37. <mapping class="HibernateEntities.StudentListSkills"/>
  38. <mapping resource="StudentListSkills.hbm.xml"/>
  39. <mapping class="HibernateEntities.ModeratorListSkills"/>
  40. <mapping resource="ModerListSkills.hbm.xml"/>
  41. <!-- <property name="connection.username"/> -->
  42. <!-- <property name="connection.password"/> -->
  43. <!-- DB schema will be updated if needed -->
  44. <!-- <property name="hbm2ddl.auto">update</property> -->
  45. </session-factory>
  46. </hibernate-configuration>