OK, so here's the initial shot at allowing configuration of the listeners...

The dtd changes:

<!ELEMENT listener EMPTY>
<!ATTLIST listener type
(auto-flush|copy|delete|dirty-check|evict|flush|load|lock|refresh|replicate|
save|update) #REQUIRED>
<!ATTLIST listener class CDATA #REQUIRED>

<!ELEMENT session-factory (property*, mapping+,
(class-cache|collection-cache)*, listener*)>

An example config:
<hibernate-configuration>
        <session-factory>
                ...
                <listener type="load" class="whatever.CustomLoadListener"/>
        </session-factory>
</hibernate-configuration>


This is all done on my local box, but i have been unable to connect to the
sourceforge cvs server to commit it.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to