Code example for MappingException

0
		try { 
			if ( generatorClass == null ) { 
				generatorClass = ReflectHelper.classForName( strategy ); 
			} 
		} 
		catch ( ClassNotFoundException e ) { 
			throw new MappingException( String.format( "Could not interpret id generator strategy [%s]", strategy ) ); 
		} 
		return generatorClass; 
	} 
 
	@Override 
	public void injectServices(ServiceRegistryImplementor serviceRegistry) { 
		this.dialect = serviceRegistry.getService( JdbcServices.class ).getDialect(); 
	} 
}