Hi everybody I have an application that uses Hibernate3 for data persistance and Spring AOP (spring 2.5) for concerns such as security, logging, etc When i include the business layer package in some pointcut, Spring creates the proxies for these classes, but Hibernate doesn't recognize the mapping anymore.
So when i call, for example, LanguageDAO.save(myLanguage) (myLanguage is a Language object) Hibernate throws an exception ("Unknown entity...") because at runtime the object is not a Language but a CGLIB proxy and he cannot resolve the mapping.
Can you give some suggestion to resolve this problem?
Thanks S.
|