Adds support for including EventListener configuration in hbm2cfgxml
--------------------------------------------------------------------
Key: HBX-692
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-692
Project: Hibernate Tools
Type: Patch
Components: hbm2java
Reporter: James Talmage
Priority: Minor
Attachments: patch.diff
This patch adds support for including <event/> and <listener/> tags in the output generated from hbm2cfgxml. By default the feature is turned off (for backward compatibility). When enabled, it only outputs information on the listeners that differ from the defaults. A second option allows this filter to be turned off, producing a complete listing of the EventListeners.
Usage is as follows:
<hibernatetool>
....
<hbm2cfgxml eventListeners="true" filterEventListeners="false"/>
</hibernatetool>
This would print ALL the eventListeners in the configuration to the file.
Obviously if the event-listener configuration can't be specified via xml (i.e. it requires programatic configuation), this won't be of much help.
I've been using a version of this for a while now and find it quite handy.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|