Skip to content

Instantly share code, notes, and snippets.

@danirod
Created October 9, 2016 10:35
Show Gist options
  • Save danirod/7b23abcd5157bd47f422e2042f86e903 to your computer and use it in GitHub Desktop.
Save danirod/7b23abcd5157bd47f422e2042f86e903 to your computer and use it in GitHub Desktop.
persistence.xml vacío
<?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>
@ErickBVA
Copy link

ErickBVA commented Apr 3, 2017

Thanks
!

Copy link

ghost commented Jun 16, 2017

Gracias!

@HqzMer
Copy link

HqzMer commented Aug 10, 2017

Like! Like!

@EverCabarcas
Copy link

Excelente, Gracias

@alexandredantas99
Copy link

Tks.

@samuelpena21
Copy link

Genial!

@arxzel
Copy link

arxzel commented Jan 9, 2018

muchas gracias

@valelof87
Copy link

valelof87 commented Nov 14, 2018

como seria el codigo para mysql?

Copy link

ghost commented Nov 23, 2018

como seria el codigo para mysql?

  <property name = "hibernate.dialect">
     org.hibernate.dialect.MySQLDialect
  </property>
  
  <property name = "hibernate.connection.driver_class">
     com.mysql.jdbc.Driver
  </property>
  
  <!-- Assume test is the database name -->
  
  <property name = "hibernate.connection.url">
     jdbc:mysql://localhost/test
  </property>
  
  <property name = "hibernate.connection.username">
     root
  </property>
  
  <property name = "hibernate.connection.password">
     root123
  </property>
  
  <!-- List of XML mapping files -->
  <mapping resource = "Employee.hbm.xml"/>

ese es el archivo dtd

@ljgithub
Copy link

Chevere, esta muy completo, pero, no me reconoce aun :/

@juanlucode
Copy link

Muy buen trabajo. Gracias.

@noktuos
Copy link

noktuos commented Oct 19, 2020

Thanks

@Alexystech
Copy link

deluxe!

@ErnestoSanchezInfante
Copy link

Muchas Gracias, saludos desde México

@CarlosJoseSanchezCarmona

gracias! buen trabajo!

@Pablo-hub44
Copy link

thanks bro

@MiguelLuceroSL
Copy link

soy un %$#% lo hice a mano y luego vi que lo dejo en la descripcion

@Franmh03
Copy link

Franmh03 commented Oct 11, 2024

Thanks, A LOT, your courses are really usefull for my, really really, thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment