-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate mappings and Spring AOP
PostPosted: Tue Jun 30, 2009 7:06 am 
Beginner
Beginner

Joined: Tue Jun 30, 2009 7:05 am
Posts: 29
Location: Italy
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.