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">
- <!-- unidade de persistencia com o nome financas -->
- <persistence-unit name="financas">
- <!-- Implementação do JPA, no nosso caso Hibernate -->
- <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
- <!-- Aqui são listadas todas as entidades -->
- <class>br.edu.unoesc.financas.modelo.Conta</class>
- <properties>
- <!-- Propriedades JDBC -->
- <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" />
- <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost/financas?createDatabaseIfNotExist=true&useTimezone=true;useSSL=false" />
- <property name="javax.persistence.jdbc.user" value="root" />
- <property name="javax.persistence.jdbc.password" value="" />
- <!-- Configurações específicas do Hibernate -->
- <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
- <property name="hibernate.hbm2ddl.auto" value="update" />
- <property name="hibernate.show_sql" value="true" />
- <property name="hibernate.format_sql" value="true" />
- </properties>
- </persistence-unit>
- </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement