Boa tarde pessoal!
O Hibernate está dropando e recriando as tabelas existentes do meu BD...
Como eu defino no persistence.xml, para que ele não faça isso?
Meu persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<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="default">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect" />
<property name="hibernate.connection.url" value="jdbc:oracle:thin:@ipDoMeuServidor/meuBD" />
<property name="hibernate.connection.driver_class" value="oracle.jdbc.OracleDriver" />
<property name="hibernate.connection.username" value="meuUsuario" />
<property name="hibernate.connection.password" value="minhaSenha" />
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
</properties>
</persistence-unit>
</persistence>
Eu alterei a linha:
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
Para:
<property name="hibernate.hbm2ddl.auto" value="update" />
Mas não resolveu...