Aí pessoal…
To trabalhando com hibernate e dá o seguinte erro:
16:35:31,718 INFO Environment:479 - Hibernate 3.1.3
16:35:31,734 INFO Environment:494 - loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=org.postgresql.Driver, hibernate.cglib.use_reflection_optimizer=true, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.max_fetch_depth=1, hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect, hibernate.jdbc.use_streams_for_binary=true, hibernate.format_sql=true, hibernate.query.substitutions=yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.connection.username=postgres, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.url=jdbc:postgresql://localhost:5432/intranet, hibernate.connection.password=****, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.pool_size=1}
16:35:31,796 INFO Environment:524 - using java.io streams to persist binary types
16:35:31,796 INFO Environment:525 - using CGLIB reflection optimizer
16:35:31,796 INFO Environment:555 - using JDK 1.4 java.sql.Timestamp handling
16:35:32,031 INFO Configuration:497 - Reading mappings from resource: Usuario.hbm.xml
Não foi possivel, Erro: Could not read mappings from resource: Usuario.hbm.xml
No caso, o erro tá no final, evidente… hehehe
mas então… queria saber o que pode ser de errado…
vaí vai meu Usuario.hbm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="Usuario" table="corresp_usr">
<id name="usuario" column="usuario" type="int">
<generator class="assigned"/>
</id>
<property name="UsNome" column="nome" type="string"/>
<property name="UsSenha" column="senha" type="string"/>
<property name="UsSetor" column="setor" type="string"/>
<property name="UsStatus" column="status" type="int"/>
</class>
</hibernate-mapping>
Não sei se tem que configurar alguma outra coisa, além das classes e disso aí em cima…
Peguei um tutorial e cheguei até este ponto…
Não tem que configurar os mapeamentos, ou algo do gênero?! o banco de dados… como configuro pro hibernate achar?
Eu precisaria de uns exemplos (mesmo que links), pra eu me basear e entender a moral…

Valeu!!!