SHARE
TWEET

persistence.xml

a guest Dec 30th, 2018 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <persistence version="2.1"   xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
  3. xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
  4.     <persistence-unit name="MyPersistenceUnit"  transaction-type="RESOURCE_LOCAL" >
  5.          <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
  6.         <class>modelo.dominio.Especialidad</class>
  7.         <class>modelo.dominio.Paciente</class>
  8.         <class>modelo.dominio.Medico</class>
  9.         <class>modelo.dominio.Turno</class>
  10.         <properties>
  11.             <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/hospital" />
  12.             <property name="javax.persistence.jdbc.user" value="root" />
  13.             <property name="javax.persistence.jdbc.password" value="36856296" />
  14.             <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" />
  15.            <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
  16.            <property name="hibernate.show_sql" value="true" />
  17.             <property name="hibernate.format_sql" value="true" />
  18.             <property  name="hibernate.id.new_generator_mappings" value="false" />
  19.         </properties>
  20.     </persistence-unit>
  21.      
  22. </persistence>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top