The file persistence-test.xml contains:
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
You can change that to
create(or any other value allowed by Hibernate), so that it doesnt drop the database tables when the PersistenceContext is destroyed.
I'm using maven and in folder src/test/resources has the META-
INF/persistence.xml with the property hibernate.hbm2ddl.auto like update.
I dont understand why the application don't keep the data!