Persistencia em Hibernate

Ola Pessoal Estou com um Problema com Hibernate que Esta aparecendo o seguinte erro

eu fiz Varias Classes se Alguem Puder Dar uma Olhada e Me ajudar

Erro que aparece quando aperto para incluir no banco é este

Jan 10, 2012 3:53:26 PM org.hibernate.cfg.annotations.Version <clinit> Informações: Hibernate Annotations 3.3.1.GA Jan 10, 2012 3:53:26 PM org.hibernate.cfg.Environment <clinit> Informações: Hibernate 3.2.5 Jan 10, 2012 3:53:26 PM org.hibernate.cfg.Environment <clinit> Informações: hibernate.properties not found Jan 10, 2012 3:53:26 PM org.hibernate.cfg.Environment buildBytecodeProvider Informações: Bytecode provider name : cglib Jan 10, 2012 3:53:26 PM org.hibernate.cfg.Environment <clinit> Informações: using JDK 1.4 java.sql.Timestamp handling Jan 10, 2012 3:53:26 PM org.hibernate.cfg.Configuration configure Informações: configuring from resource: /hibernate.cfg.xml Jan 10, 2012 3:53:26 PM org.hibernate.cfg.Configuration getConfigurationInputStream Informações: Configuration resource: /hibernate.cfg.xml Jan 10, 2012 3:53:26 PM org.hibernate.cfg.Configuration addResource Informações: Reading mappings from resource : forsig/sistema/dallas/bean/hibernate.hbm.xml Initial SessionFactory creation failed.org.hibernate.MappingNotFoundException: resource: forsig/sistema/dallas/bean/hibernate.hbm.xml not found[code]

Pelo que eu entendi ele não achou esse aquivo: hibernate.hbm.xml
Veja se ele se encontra em seu ClassPath.

Ola eliasForsig,

Esta faltando o mapeamento da Entidade …

Você deve ter um arquivo “.cfg.xml” com as configurações de conexão e mapeamento do Hibernate, correto?

Lá deve ter uma tag parecida com essa:

<mapping resource="hibernate.hbm.xml"/>

Ou seja, esse “mapping resource” é o arquivo de mapeamento da entidade (Tabela no banco de dados), contendo todos os nomes das colunas. Se você não tiver esse arquivo, ele irá compilar mas dará RuntimeException

att.