We have couple different web-apps that share the same db link. The hibernate layer in each web-app is a jar copy of the "*.hbm.xml" and java files. Over time, I am worried about inconsistencies creeping into each copy, people forgetting to create jar file.
Is there a better way to share the same db hibernate information across multiple projects than just creating jar files ?
This is entirely a build & deployment problem. If your hibernate entities are in a different package, then you should build that package before the apps, and package the resulting jar with them.
Maven makes this easy:
<dependency>
on the jar