You can follow standard hibernation tutorials, such as the documentation provided by hibernate.org or the Gaven Kings book, for using hibernation in conjunction with the eclipse rcp project.
The easiest way is to include your Hibernate related code and your configuration in the plugin you are currently developing.
Therefore, your plugin should depend on jar files, depends on each hibernation project. You can also provide these libraries with a separate plugin and simply export them.
But you must remember that hibernate makes heavy use of reflection, and your persistent classes should be available to your persistence manager.
There is also a very good tutorial on integrating hibernate as a separate plugin at http://entwickler.de/zonen/portale/psecom,id,101,online,1082,.html , but unfortunately it is only available in German.
Tom123456
source share