• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I get exception that class is not mapped.

 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one class (CountyBean) that is mapped to the county table.

On my dev environment (connects to Dev database) it works as expected. On the Test environment (connects to Test database) , I got the unmapped class exception for the CountyBean. I noticed that other Entities that behaved like CountyBean did not implement Serializable. Once I stopped implementing it for CountyBean, It worked correctly.
These entities do not UPDATE or INSERT, they only select at this point.
I thought Hibernate persisted entities were supposed to implement Serializable. If so, I must have missed some simple concept in setting up my project. Can anyone enlighten me?
 
Hemant Thard
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Tim,

persisted entities in hibernate are not stored in serialized form.

check this out.
Serialize objects in Hibernate

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic