|
|
Hibernate, problem with entity mapping
Hi
I found strange problem. If I try use Hibernate, in class that is derived from SimpleFormController, this exception is thrown:
org.hibernate.MappingException: Unknown entity: net.pattern26.album.User$$EnhancerByCGLIB$$d348eea 7
but I defined mapping for class User, and others mappings works. I think that mapping is correct because I can found an information about that in same log as the exception.
Sep 19, 2006 9:22:29 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: net.pattern26.album.User -gt; USER
Strange is that If I use the same piece code, that causes the exception, in controller that is derived from class Controller everything works as I expect.
Thank a lot for your help.
Filip |
|