persistence.xml vacio
Archivo persistence.xml vacio usado para hibernate,jpa debe ir dentro de la carpeta de META-INF en resources si usas maven
<?xml version="1.0" encoding="UTF-8" ?>
<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" xmlns="http://java.sun.com/xml/ns/persistence">
<persistence-unit name="aplicacion">
<properties>
<property name="javax.persistence.jdbc.driver" value="" />
<property name="javax.persistence.jdbc.url" value="" />
<property name="javax.persistence.jdbc.user" value="" />
<property name="javax.persistence.jdbc.password" value="" />
<property name="hibernate.dialect" value="" />
<property name="hibernate.hbm2ddl.auto" value="" />
</properties>
</persistence-unit>
</persistence>
<?xml version="1.0" encoding="UTF-8" ?>
<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" xmlns="http://java.sun.com/xml/ns/persistence">
<persistence-unit name="aplicacion">
<properties>
<property name="javax.persistence.jdbc.driver" value="" />
<property name="javax.persistence.jdbc.url" value="" />
<property name="javax.persistence.jdbc.user" value="" />
<property name="javax.persistence.jdbc.password" value="" />
<property name="hibernate.dialect" value="" />
<property name="hibernate.hbm2ddl.auto" value="" />
</properties>
</persistence-unit>
</persistence>
No hay comentarios.