Created
October 9, 2016 10:35
-
-
Save danirod/7b23abcd5157bd47f422e2042f86e903 to your computer and use it in GitHub Desktop.
persistence.xml vacío
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Gracias!
Like! Like!
Excelente, Gracias
Tks.
Genial!
muchas gracias
como seria el codigo para mysql?
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
Chevere, esta muy completo, pero, no me reconoce aun :/
Muy buen trabajo. Gracias.
Thanks
deluxe!
Muchas Gracias, saludos desde México
gracias! buen trabajo!
thanks bro
soy un %$#% lo hice a mano y luego vi que lo dejo en la descripcion
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
Thanks
!