Hi all,
I have written a helper class using Spring's FactoryBean and ResourceLoaderAware interfaces for Hibernate to automatically find classes with @Entity annotation. So now we can let the class find all entites in our application context automatically, just the same as using EntityManager.
Sorry, I don't know how to post the xml and source code, so pls visit my blog for details:
william-mo.spaces.live.com
And any suggestion are deeply appreciated:
william.lee.mo@hotmail.com (also Windows Live Messenger Account ID)
Regards,
William Mo