blecher wrote:
I now that. but I try to understand the enhancement mechanism.
Once the objects are enhanced, that need hibernate.jar in my classpath, right?
Is there anyway to get rid of this enhanced code at runtime so I need no more hibernate.jar?
Hibernate will generate new class for wrapper or will use persistent collection implementation for collections.
It wrapps persistent object for lazy loading and this feature is optional,
if you will unwrapp object you will lose the feature.
If you do not need this feature, just do not use it and your persistent objects will be plain objects without dependancies on hibernate.