From: Gavin_King/Cirrus%<CI...@ci...> - 2002-08-31 03:44:28
|
>That sounds perfect. Any chance of this happening in the near future? >I'm sort of at a dead end at the moment because of this. Yeah, its easy enough to implement. I'll have a look at it today if you like. >I was hoping to use the Lifecycle interface to get around this problem, >but it looks like you only get callbacks before the event and not after >the event. Have you considered extending Lifecycle to support this? Its very difficult to strike a balance with the Lifecycle interface. Theres all kind of events that could be useful but, on the other hand, we want the interface to be as simple as possible and we don't want to let assumptions about the internal dynamics of the session implementation "seep" into the API. The other thing is that its very difficult to change callback interfaces (you can deprecate methods but never add new ones). So Hibernate tries to stay as far away as possible from these kind of frameworky solutions to problems. I think its better to address this particular issue as proposed.... Of course, I am very open to other people's opinions on this. |