Hi All,
       I'm trying to use hibernate interceptor for creating audit logs.
I have a table 'tickets'  which has  many-to-many association with another table 'developer' and 'tkt_ticket_assignment' holds the tickets and developer assigments.. My hbm.xml   looks like this.    
   
Code:
<class name="com.cgi.its.model.Ticket" table="tickets">
      <id name="id" column="its_id">
         <generator class="identity"/>
      </id>
      <property name="gppiId" column="ticket_id"/>
      <property name="createdBy"   column="created_by"/>
      <property name="createdDate"   column="created_date"/>
      <property name="summary" column="summary"/>
      <property name="description" column="description"/>
                   <set name="assignedDevelopers" table="tkt_ticket_assignment" cascade="save-update">
             <key column="its_id"/>
          <many-to-many  class="com.cgi.its.model.Developer" column="user_id"/>
      </set>
  </class>
          Now the requirement is whenever i update an existing ticket, my interceptor should create a row in the audit_log table giving details like who updated, what and when. If I update 'assigneddevelopers ' with any other field audit log works fine. but if i update only 'assignedDevelopers' feild no entry is getting created in the audit_log table. Can somebody help me out in this? Thanks in advace.
Regards
Kavitha