Hibernate ORM CompositeUserType - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM CompositeUserType class.

This code example shows how to use the following methods:getClass
 
	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; 
		} 
4
CodeRank