Dificuldades no hibernate

1 resposta
A

Pessoal se possivel verifiquem qual é o erro esta acontecendo abaixo no padrão de projeto em hibernate

muito obrigado

init:

deps-jar:

Compiling 1 source file to C:\Documents and Settings\lab3\Desktop\cadastro de alunos em uma universidade\build\classes

compile:

run:

log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).

log4j:WARN Please initialize the log4j system properly.

org.hibernate.MappingException: Association references unmapped class: disciplina

at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2036)

at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2497)

at org.hibernate.cfg.HbmBinder$SecondPass.doSecondPass(HbmBinder.java:2468)

at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:884)

at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:999)

at HibernateUtility.(HibernateUtility.java:21)

at Teste.main(Teste.java:16)

Exception in thread main java.lang.NullPointerException

at HibernateUtility.getSession(HibernateUtility.java:30)

at Teste.main(Teste.java:16)

Java Result: 1

BUILD SUCCESSFUL (total time: 3 seconds)

1 Resposta

kaique

Cara…o q tah acontecendo eh q a tua classe Disciplina nao tah mapeada…

Vlw!!

Criado 12 de abril de 2006
Ultima resposta 13 de abr. de 2006
Respostas 1
Participantes 2