[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2055) Add Set<String> EventListeners.getEventTypes() method and public constants.

Josh Moore (JIRA) noreply at atlassian.com
Fri Sep 8 10:55:24 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2055?page=comments#action_24383 ] 

Josh Moore commented on HHH-2055:
---------------------------------

My approach was this:

josh at millaboula:~/code/hibernateSVN/Hibernate3$ grep -rlE '("auto-flush"|"merge"|"create"|"create-onflush"|"delete"|"dirty-check"|"evict"|"flush"|"flush-entity"|"load"|"load-collection"|"lock"|"refresh"|"replicate"|"save-update"|"save"|"update"|"pre-load"|"pre-update"|"pre-delete"|"pre-insert"|"post-load"|"post-update"|"post-delete"|"post-insert"|"post-commit-update"|"post-commit-delete"|"post-commit-insert")' src/ | grep -v svn | less
src/org/hibernate/secure/HibernatePermission.java
src/org/hibernate/pretty/Formatter.java
src/org/hibernate/classic/Session.java
src/org/hibernate/cfg/SettingsFactory.java
src/org/hibernate/cfg/ResultSetMappingBinder.java
src/org/hibernate/cfg/HbmBinder.java
src/org/hibernate/engine/CascadeStyle.java
src/org/hibernate/mapping/Index.java
src/org/hibernate/impl/StatelessSessionImpl.java
src/org/hibernate/tool/hbm2ddl/SchemaExportTask.java
src/org/hibernate/persister/entity/AbstractEntityPersister.java
src/org/hibernate/event/def/DefaultMergeEventListener.java
src/org/hibernate/event/def/DefaultRefreshEventListener.java
src/org/hibernate/event/EventListeners.java
src/org/hibernate/hql/QuerySplitter.java
src/org/hibernate/Session.java

Checked all of those. The only one that seemed iffy was the RSMBinder. (Lots of flushMode.equals("merge"), cascades, and whatnot. The same run on /test shows nothing of interest. Almost only *.hbm.xml files.

> Add Set<String> EventListeners.getEventTypes() method and public constants.
> ---------------------------------------------------------------------------
>
>          Key: HHH-2055
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2055
>      Project: Hibernate3
>         Type: Improvement

>   Components: core
>     Versions: 3.2.0.cr4
>     Reporter: Josh Moore
>     Assignee: Steve Ebersole
>     Priority: Trivial
>  Attachments: cfg_patch.txt, elistener_patch.txt
>
>
> Since the EventListeners.getListenerClassFor(String type) takes string types, it would be useful to be able to get these strings, and perhaps even to them available as public final static String constants. Simplifies programmatic configuration, and allows for easily detecting if a new event listener type has been added or removed.

-- 
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




More information about the hibernate-issues mailing list