Code example for CompositeUserType

Methods: getClass

0
 
	private static class TypeScopeImpl implements TypeFactory.TypeScope { 
		private SessionFactoryImplementor factory; 
 
		public void injectSessionFactory(SessionFactoryImplementor factory) { 
            if (this.factory != null) { 
				LOG.scopingTypesToSessionFactoryAfterAlreadyScoped( this.factory, factory ); 
			} 
            else { 
				LOG.trace( "Scoping types to session factory " + factory ); 
			} 
			this.factory = factory; 
		} 
 
		public SessionFactoryImplementor resolveFactory() { 
			if ( factory == null ) { 
				throw new HibernateException( "SessionFactory for type scoping not yet known" ); 
			} 
			return factory; 
		}