automatic class generation from schema