I had a look at the way you implemented this. Its really nice,
actually. I'm still not 100% convinced that it needs to be
automatic but I cant think of any compelling reason why it should
_not_ be so I'm inclined to use your patch.
The main difficulty with this is updating all 10 existing
dialect
it appears that session.load throws a HibernateException if an object
with the supplied id doesn't exist. would it be better for hibernate to
throw a different exception in this case (say an ObjectNotFoundException
that extends HibernateException), to differentiate between the object
not existing