Well, that's the question. I have everything configured as it is supposed to be configured, and it does not generate anything, any class or file .hbm.xml
of mapping. The bookstores that I have is because I was adding for a NoClassDefFoundError
that I did not find because it happened, and I stay that way. From the version 5.2.2.Final
and 5.1.1.Final
I have all the libraries, from the 4.3.11.Final
I only put the folder required
. I leave all the information below:
hibernate.cfg.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="sessionFactory">
<property name="hibernate.bytecode.use_reflection_optimizer">false</property>
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.password">dementoryo</property>
<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/Universidades</property>
<property name="hibernate.connection.username">Augusto</property>
<property name="hibernate.default_schema">public</property>
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<property name="hibernate.search.autoregister_listeners">false</property>
<property name="hibernate.validator.apply_to_ddl">false</property>
</session-factory>
</hibernate-configuration>
hibernate.reveng.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<table-filter match-schema="public" match-name="Alumnos"/>
<table-filter match-schema="public" match-name="Carrera"/>
<table-filter match-schema="public" match-name="Detalle_Facultad"/>
<table-filter match-schema="public" match-name="Docente"/>
<table-filter match-schema="public" match-name="Facultad"/>
<table-filter match-schema="public" match-name="Materia"/>
<table-filter match-schema="public" match-name="Materia_Correlativa"/>
<table-filter match-schema="public" match-name="Persona"/>
<table-filter match-schema="public" match-name="Universidad"/>
</hibernate-reverse-engineering>
Project tree
That's how I got the Hibernate Console Configuration
And so the Code Generator
It does not generate any errors, nor any warning of any kind. I do not know where to keep looking for what the error may be.
Please, I would appreciate any help, it is for a proof of concept for a job opportunity and I need to solve it.
Thank you very much