Ver Mensaje Individual
  #20 (permalink)  
Antiguo 17/07/2008, 10:43
dcapilla
 
Fecha de Ingreso: julio-2002
Ubicación: Córdoba
Mensajes: 54
Antigüedad: 21 años, 10 meses
Puntos: 0
Respuesta: Conectar hibernate con postgreSQL

Cita:
Iniciado por Bunburyscom Ver Mensaje
jejejje... no me mareas, asi aprendemos todos

Haber pasame tu hibernate.cfg.cml y tu clase de sesiones de Hibernate para probarlo aca.
No se si te refieres a esto.

Si quieres que te pase algo más.......Es que por aquí no me deja más de 10000 mil caracteres. Si puedo mandarla por correo.......


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.datasource">java:comp/env/jdbc/GestAbogado</property>
<property name="hibernate.dialect">
org.hibernate.dialect.PostgreSQLDialect
</property>
<property name="hibernate.transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/gestAbogado</property>



<property name="connection.driver_class">org.postgresql.Driv er</property>
<property name="connection.url">jdbc:postgresql://localhost:5432/gestAbogado</property>
<property name="connection.username">postgres</property>
<property name="connection.password">postgres</property>

<property name="dialect">org.hibernate.dialect.PostgreSQLDia lect
</property>



<!-- Mapping files -->
<property name="hibernate.jndi.url"></property>
<mapping resource="com/gestAbogado/modelo/cliente.hbm.xml" />

</session-factory>
</hibernate-configuration>