Using Hibernate with Dynamic Eclipse Plug-ins
Posted
by AlbertoPL
on Stack Overflow
See other posts from Stack Overflow
or by AlbertoPL
Published on 2009-06-26T19:44:48Z
Indexed on
2010/04/17
16:03 UTC
Read the original article
Hit count: 312
I have classes that are named exactly the same across different plug-ins that I use for my application, and I'd like to be able to configure them properly with Hibernate. The problem is that it looks like Hibernate dynamically generates a class' package name when trying to find a class when it's doing its mapping. With one plug-in this scheme works, but across multiple plug-ins it's not working. It looks like Hibernate gets confused when dealing with Hibernate configuration files across multiple plug-ins.
Is this because each plug-in has its own class-loader? What is the best way to proceed to make this work with the existing plug-ins and Hibernate?
© Stack Overflow or respective owner