Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <persistence xmlns="http://java.sun.com/xml/ns/persistence"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
- http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
- version="2.0">
- <persistence-unit name="notas" transaction-type="RESOURCE_LOCAL">
- <class>sistema.entidade.Item</class>
- <class>sistema.entidade.NotaFiscal</class>
- <class>sistema.entidade.Produto</class>
- <!--<class>sistema.entidade.Produto</class>-->
- <properties>
- <!-- POSTGRESQL -->
- <property name="javax.persistence.jdbc.driver"
- value="org.postgresql.Driver" />
- <property name="javax.persistence.jdbc.url"
- value="jdbc:postgresql://localhost:5432/fj26" />
- <property name="javax.persistence.jdbc.user"
- value="postgres" />
- <property name="javax.persistence.jdbc.password"
- value="mppi2014" />
- <property name="hibernate.hbm2ddl.auto"
- value="update" />
- <property name="hibernate.show_sql"
- value="true" />
- <property name="hibernate.dialect"
- value="org.hibernate.dialect.PostgreSQLDialect" />
- <!-- FIM DE POSTGRESQL -->
- <!-- MYSQL - ->
- <property name="javax.persistence.jdbc.driver"
- value="com.mysql.jdbc.Driver" />
- <property name="javax.persistence.jdbc.url"
- value="jdbc:mysql://localhost/fj26" />
- <property name="javax.persistence.jdbc.user"
- value="root" />
- <property name="javax.persistence.jdbc.password"
- value="" />
- <property name="hibernate.hbm2ddl.auto"
- value="update" />
- <property name="hibernate.show_sql"
- value="true" />
- <property name="hibernate.dialect"
- value="org.hibernate.dialect.MySQL5InnoDBDialect" />
- <!- - FIM DE MYSQL -->
- </properties>
- </persistence-unit>
- </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement