[Hibernate] Using factory methods to obtain new instances

2003-01-23 Thread Gavin King
Yes, I am very open to this; not only for instantiation, but also for *proxy* instantiation. My motivation for this is integration with AOP frameworks. How I propose to do this is to add some more methods to Interceptor in Hibernate2. (It is currently possible by extending EntityPersister, but tha

[Hibernate] Using factory methods to obtain new instances

2003-01-23 Thread Simon Stewart
Just a quick query: as I understand it, each Object that uses Hibernate for persistence needs to have a concrete class with an empty constructor. How hard would it be to modify Hibernate to call a method on a factory class instead of "new"? And how hard would it be to be able to pass a referenc