@ Deprecated public Class < ? > getClassFromCollection ( final String collection ) { final Set < MappedClass > mcs = mappedClassesByCollection . get ( collection ) ; if ( mcs == null || mcs . isEmpty ( ) ) { throw new MappingException ( format ( "The collection '%s' is not mapped to a java class." , collection ) ) ; } if ( mcs . size ( ) > 1 ) { if ( LOG . isInfoEnabled ( ) ) { LOG . info ( format ( "Found more than one class mapped to collection '%s'%s" , collection , mcs ) ) ; } } return mcs . iterator ( ) . next ( ) . getClazz ( ) ; }
Looks up the class mapped to a named collection .