Advertisement
Guest User

Untitled

a guest
Feb 14th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. <persistence xmlns="http://java.sun.com/xml/ns/persistence"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
  4. http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
  5. version="2.0">
  6.  
  7. <persistence-unit name="notas" transaction-type="RESOURCE_LOCAL">
  8. <class>sistema.entidade.Item</class>
  9. <class>sistema.entidade.NotaFiscal</class>
  10. <class>sistema.entidade.Produto</class>
  11. <!--<class>sistema.entidade.Produto</class>-->
  12.  
  13. <properties>
  14. <!-- POSTGRESQL -->
  15. <property name="javax.persistence.jdbc.driver"
  16. value="org.postgresql.Driver" />
  17. <property name="javax.persistence.jdbc.url"
  18. value="jdbc:postgresql://localhost:5432/fj26" />
  19.  
  20. <property name="javax.persistence.jdbc.user"
  21. value="postgres" />
  22. <property name="javax.persistence.jdbc.password"
  23. value="mppi2014" />
  24.  
  25. <property name="hibernate.hbm2ddl.auto"
  26. value="update" />
  27. <property name="hibernate.show_sql"
  28. value="true" />
  29. <property name="hibernate.dialect"
  30. value="org.hibernate.dialect.PostgreSQLDialect" />
  31. <!-- FIM DE POSTGRESQL -->
  32.  
  33.  
  34. <!-- MYSQL - ->
  35. <property name="javax.persistence.jdbc.driver"
  36. value="com.mysql.jdbc.Driver" />
  37. <property name="javax.persistence.jdbc.url"
  38. value="jdbc:mysql://localhost/fj26" />
  39.  
  40. <property name="javax.persistence.jdbc.user"
  41. value="root" />
  42. <property name="javax.persistence.jdbc.password"
  43. value="" />
  44.  
  45. <property name="hibernate.hbm2ddl.auto"
  46. value="update" />
  47. <property name="hibernate.show_sql"
  48. value="true" />
  49. <property name="hibernate.dialect"
  50. value="org.hibernate.dialect.MySQL5InnoDBDialect" />
  51. <!- - FIM DE MYSQL -->
  52. </properties>
  53. </persistence-unit>
  54. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement