Hi Ayendi,

          Thanks a lot for your quick response.
          Mr.Torkel Ödegaard explained about how to solve my problem clearly
in his blog

 
http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html<http://www.codinginstinct.com/2008/04/nhibernate-20-events-and-listeners.html>
        I am using ActiveRecord with Nhibernate 1.2 and Rhino.Common
Repository.
        It is a difficult task for a newbe like me to build Castle and Rhino
tools with Nhibernate 2.0.
        Anyway I hope I can do it.

          Please clarify one more thing

         In his blog he gave sample Nhibernate configuration to hook this
listener  like

<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
    <session-factory>
        ...
        <listener class="NHibTest.Listeners.CustomSaveEventListener,
NHibTest" type="save" />
        <listener class="NHibTest.Listeners.CustomSaveEventListener,
NHibTest" type="save-update" />
    </session-factory>
</hibernate-configuration>




How can I hook this listener with ActiveRecord ?




On Mon, Jan 19, 2009 at 5:35 PM, Ayende Rahien <[email protected]> wrote:
>
http://www.google.com/search?client=safari&rls=en-us&q=nhibernate+event+listeners&ie=UTF-8&oe=UTF-8
>
> On Mon, Jan 19, 2009 at 8:19 AM, Mohammed Ali <[email protected]>
> wrote:
>>
>> Can I get any sample code snippet for the same ?
>>
>> On Mon, Jan 19, 2009 at 4:40 PM, Ayende Rahien <[email protected]> wrote:
>> > take a look at event listeners or interceptor.
>> >
>> > On Mon, Jan 19, 2009 at 3:32 AM, Aslam <[email protected]>
>> > wrote:
>> >>
>> >>
>> >>      I started a new project using ActiveRecord.All classes having
>> >> the fields of Created_When and Edited_When for audit purpose.I am
>> >> newbe in AR/Rhino stack .I read some post which tells that it can
>> >> solve by Hooks .How can I set the values for these fields by
>> >> implementing Hooks.I am usng Rhino.Common.Repository for CRUD.
>> >>
>> >> Can anybody help ?.
>> >>
>> >>
>> >
>> >
>> > >
>> >
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to