Com muito custo consegui avançar no hibernate. Mas ainda dá erros em questões de mapeamento. Antes de resolver isso, eu gostaria de saber quais bibliotecas são necessárias para o hibernate.
Nas minhas tentativas, os erros só pararam depois que eu acrescentei as seguintes bibliotecas no classpath:
commons-logging-1.0.4.jar
commons-collections-2.1.1.jar
log4j-1.2.9.jar
dom4j-1.4.jar
Minha aplicação é uma aplicação desktop c/ swing j2se5. Realmente é necessário todas essas bibliotecas ao fazer qualquer coisa com hibernate?
Se puderem de uma checada no conteúdo de meus arquivos hibernate.properties e hibernate.cfg.xml.
--------------hibernate.properties-------------
hibernate.connection.driver_class = org.firebirdsql.jdbc.FBDriver
hibernate.connection.url = jdbc:firebirdsql:servidor:3050/c:\SOR\BANCO.FDB
hibernate.connection.username = SYSDBA
hibernate.connection.password = masterkey
hibernate.dialect = org.hibernate.dialect.FirebirdDialect
hibernate.c3p0.min_size=5
hibernate.c3p0.max_size=20
hibernate.c3p0.timeout=300
hibernate.c3p0.max_statements=50
hibernate.c3p0.idle_test_period=3000
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory
name="java:hibernate/SessionFactory">
<!-- mapping files -->
<mapping resource="src/model/hibernate/Cliente.hbm.xml"/>
<mapping resource="src/model/hibernate/Orcamento.hbm.xml"/>
<!-- cache settings -->
</session-factory>
</hibernate-configuration>