-->
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: Interceptor not calling onLoad or OnSave
PostPosted: Wed Jan 23, 2008 7:53 am 
Newbie

Joined: Wed Jan 23, 2008 7:45 am
Posts: 14
Location: Pune,India
I have hooked in a Interceptor through the SessionFactory. This is done via spring in the following manner

Code:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
          <property name="dataSource">
          <db:DataSource datasource="local"/>
        </property>
       <property name="configLocation" value="classpath:hibernate.cfg.xml"></property>
       <property name="entityInterceptor" ref="customInterceptor"></property>
   </bean>

<bean id="customInterceptor" class="com.msdw.onecrm.hibernate.custominterceptors.OneCRMHibernateInterceptor"></bean>



In the interceptor I am overriding the onLoad and OnSave methods. These methods never get called. I am wondering why.

However, the methods preFlush, postFlush and onReCreateCollection are called properly.

As per my understanding when a collection is retrieved the individual elements of the collection should callback the onLoad of the interceptor. If this understanding is correct, then why isn't this happening?

Can anybody throw some light on this?

--Harshal Vaidya


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.