Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.hibernate.MappingNotFoundException

 
Fabio Araujo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm learning Hibernate and can't go through this error


hibernate.cfg.xml


As I read, if I use annotations I wouldn't use xml files to map my class...
Then my class looks like that.

Where the error shows up.

Below my archives in eclipse.


 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouldn't

<mapping resource="entidades.Aluno"/>

be

<mapping class="entidades.Aluno"/>

?

Mark
 
Fabio Araujo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks Mark its working now ^^
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic