Is it possible to load the pojo classes dynamical? My project is Eclipse based and I get the pojo classes and the relating mapping files only at runtime. I have tried to set the Thread contextclassloader for loading my pojo classes. That works, but it seams that the classloader which loads my mappings and a bunch of other files (when set as contextclassloader) cannot be garbage collected, because some lib of hibernate keeps references of a class loaded by this classloader. Well is there a reason why it is not supported by hibernate to set a classsloader for examle in the class org.hibernate.util.ReflectHelper which can then load the mappings dynamical?
Or is there maybe another way to run hibernate withou having the pojo files in the classpath?
A am using hibernate version 3.1.3
|