url:
http://www.hibernate.org/hib_docs/v3/re ... le/#events
IS:
Instead, you may register it programmatically:
Configuration cfg = new Configuration();
LoadEventListener[] stack = { new MyLoadListener(), new DefaultLoadEventListener() };
cfg.
EventListeners().setLoadEventListeners(stack);
should be:
Configuration cfg = new Configuration();
LoadEventListener[] stack = { new MyLoadListener(), new DefaultLoadEventListener() };
cfg.
getEventListeners().setLoadEventListeners(stack);
Am I right or just usign different version?