0 Replies Latest reply on Apr 29, 2009 10:26 PM by Eric Martineau

    Why are classes in org.hibernate.impl all marked final?

    Eric Martineau Newbie

      I'm trying to accomplish something that would be trivial if I could extend SessionFactoryImpl and SessionImpl, but they're marked final. I've been beating my head trying to get around it and can't.

      Is there a good reason for not allowing people to extend these classes? What are the odds of getting it changed?

      BTW - I'm trying to write an interceptor that injects a criterion into every Criteria instance. Because Criteria instances are provided by a Session, and Session instances are provided by SessionFactory instances, I basically have to override all the way up the chain.