Guest User

Untitled

a guest
Oct 16th, 2018
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
  3. version="2.0" xmlns="http://java.sun.com/xml/ns/persistence">
  4. <persistence-unit name="test" transaction-type="RESOURCE_LOCAL">
  5. <class>com.nissan.jpapack.Student</class>
  6. <properties>
  7. <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" />
  8. <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/crudtest?useSSL=false" />
  9. <property name="javax.persistence.jdbc.user" value="root" />
  10. <property name="javax.persistence.jdbc.password" value="Admin1234" />
  11. <property name="hibernate.connection.pool_size" value="1"/>
  12. <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
  13. <property name="show_sql" value="true"/>
  14. <property name="hibernate.temp.use_jdbc_metadata_defaults" value="false"/>
  15. <property name="hibernate.hbm2ddl.auto" value="update"/>
  16. </properties>
  17.  
  18. </persistence-unit>
  19. </persistence>
Add Comment
Please, Sign In to add comment