We've been having a problem where the primary development staff are using the latest version of Hibernate and the testing staff are *mostly* using the latest version of Hibernate. The problem being that the testing staff finds "problems" in the metadata and tells us all about what failed, occupying developer time and resources. This is also almost guaranteed to happen during deployment.
We would prefer to have something run in our app on startup that compared the running version of Hibernate against an expected version and then very loudly and clearly spelled out the problem if the environment is not configured properly. We are detecting the VM info, and we're getting version information from other frameworks, but we can't figure out how to get this info from Hibernate...
To the question: how should we programatically retrieve the Hibernate version information?
Regards,
Ross
|