I am a newbie in
J2EE.
When i was going through the Entity listeners, the declaration looks like
Instead i expect the otherway round, it should be like
I feel the second approach is extendable, say for example, if i want to write a new listener for the existing entities, it would be easy to do it in the second approach. All i have to do is that write a new listener class and associate all the entities that the new listener is willing to handle.
Can someone explain why it is done in the other way?