Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  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.  
  6. <hibernate-configuration>
  7. <session-factory>
  8. <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
  9. <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/hibernate</property>
  10. <property name="hibernate.connection.username">root</property>
  11. <property name="hibernate.connection.password">root</property>
  12. <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
  13. <property name="hibernate.show_sql">true</property>
  14. <property name="hibernate.hbm2ddl.auto">update</property>
  15. </session-factory>
  16. </hibernate-configuration>
  17.  
  18.  
  19. ------------------------------------------------
  20.  
  21.  
  22. <?xml version=”1.0″?>
  23. <hibernate-mapping>
  24. <class name=”it.fincons.corso.hibernate.Message” table= ” Message ” >
  25. <id name=”id” column=”id”>
  26. <generator class=”native”/>
  27. </id>
  28. <property name=”text” column=”text”/>
  29. </class>
  30. </hibernate-mapping>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement