por el autor de la pregunta
Hola Eduardo, aquí te dejo un hibernate.cfg.xml que tal vez pueda servirte.
<?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.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/DBAPPEDITORTEXTO?zeroDateTimeBehavior=convertToNull</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">030191</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.current_session_context_class">thread</property>
<mapping resource="Pojo/Tdocumento.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Es algo bastante básico pero podría servirte de ejemplo.
Saludos.
- 2018-10-16 00:29:59
-
Me gusta(1)