Hibernate version:2.1.8
JBoss version: 3.2.3
When I redeploy/hot deploy I get the famous :-)
Quote:
Unknown entity class
I have read the FAQ, and the book (Hibernate in Action) and STFW'd without any luck. I then debugged the code
to see what happens and found that eventually I ended up in the SessionFactoryImpl#getPersister(Class) method.
From what I can see the java.util.Map that holds the references to configured mapping documents is based on the class as the key.
This explains to me why the lookup fails (java id changes when redeploy), but not how I should do it instead.
I have seen other posts in this forum that implies that redeploy should be possible, e.g.
http://forum.hibernate.org/viewtopic.php?t=935948&highlight=outofmemory
This makes me suspect that I'm missing out on the obvious here, but I cannot seem to be able to find the <bad language placed here ...>
Yes, I'm getting a bit stressed here, since I've past my release date ;-)
Any pointers are appreciated! Even RTFM, as long as chapter references are included :-)