Hibernate ORM InvalidMappingException - 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 InvalidMappingException class.

This code example shows how to use the following methods:
				catch ( Exception orm1Problem ) { 
                    LOG.debugf("Problem parsing XML using orm 1 xsd : %s", orm1Problem.getMessage()); 
				} 
			} 
		} 
		throw new InvalidMappingException( "Unable to read XML", origin.getType(), origin.getName(), failure ); 
	} 
 
	private void setValidationFor(SAXReader saxReader, String xsd) { 
		try { 
			saxReader.setFeature( "http://apache.org/xml/features/validation/schema", true ); 
			//saxReader.setFeature( "http://apache.org/xml/features/validation/dynamic", true ); 
			//set the default schema locators 
			saxReader.setProperty( 
					"http://apache.org/xml/properties/schema/external-schemaLocation", 
					"http://java.sun.com/xml/ns/persistence/orm " + xsd 
			); 
		} 
		catch ( SAXException e ) { 
			saxReader.setValidation( false ); 
4
CodeRank
Experience pair programming with AI  Get Codota for Java