-->
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.  [ 6 posts ] 
Author Message
 Post subject: Custom METHOD Interceptor
PostPosted: Fri Jun 08, 2007 4:30 am 
Newbie

Joined: Fri Jun 08, 2007 4:20 am
Posts: 13
Hello all,

Before using Hibernate,
our data model already is enhanced with our custom Method interceptor (using cglib) for event generation and security

Now we are starting to use Hibernate,
it proxies the objects and uses its default method interceptor.

How can we add the functionality of our own interceptor to the one automatically generated by Hibernate?

Thanks in advance


Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2.0


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 09, 2007 7:51 am 
Newbie

Joined: Fri Jun 08, 2007 4:20 am
Posts: 13
Anybody?

I have been searching for an answer without success.
Any links I could read?

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 21, 2007 9:48 am 
Newbie

Joined: Fri Jun 08, 2007 4:20 am
Posts: 13
Bump

Anybody?


Top
 Profile  
 
 Post subject: Try this link
PostPosted: Thu Jun 21, 2007 1:09 pm 
Newbie

Joined: Thu Jun 21, 2007 12:33 pm
Posts: 7
I don't know what exactly you are looking for, but may be this link can help you:
http://www.hibernate.org/48.html
Just follow the indications

Bye


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 21, 2007 1:48 pm 
Newbie

Joined: Fri Jun 08, 2007 4:20 am
Posts: 13
Hi and thanks for the reply.
I read the article, but it doesn't do what I want.

As far as I understand, the Interceptor that you use when you open the session is to intercept DB actions: Save, Update, etc.

What I want to do is intercept methods of my objects.

Hibernate uses proxies to intercept methods so it can lazy-load the objects. I want to add to this proxy my own MethodInterceptor

Any help would be appreciated


Top
 Profile  
 
 Post subject: Sounds like AspectJ
PostPosted: Thu Jun 21, 2007 2:24 pm 
Newbie

Joined: Fri Apr 07, 2006 11:29 am
Posts: 17
Sounds like you could use aspect oriented programming.

http://www.eclipse.org/aspectj


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

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.