Advertisement
Talar97

Untitled

Feb 18th, 2020
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <persistence version="2.0"
  3. xmlns="http://java.sun.com/xml/ns/persistence"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  6.  
  7. <persistence-unit name="jsfcourse-simplePU" transaction-type="JTA">
  8. <jta-data-source>java:/jsfcourse/simpleDS</jta-data-source>
  9. <exclude-unlisted-classes>false</exclude-unlisted-classes>
  10. <properties>
  11. <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
  12. <!-- <property name="hibernate.hbm2ddl.auto" value="update" /> -->
  13.  
  14. <property name="hibernate.connection.characterEncoding" value="utf8" />
  15. <property name="hibernate.connection.useUnicode" value="true" />
  16. <property name="hibernate.connection.charSet" value="UTF-8" />
  17.  
  18. <!-- <property name="hibernate.show_sql" value="true" /> -->
  19. <!-- <property name="hibernate.use_sql_comments" value="true" /> -->
  20. </properties>
  21. </persistence-unit>
  22.  
  23. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement