use of org.hibernate.orm.test.internal.util.xml.XMLMappingHelper in project hibernate-orm by hibernate.
the class XMLContextTest method testAll.
@Test
public void testAll() throws Exception {
XMLMappingHelper xmlHelper = new XMLMappingHelper();
final XMLContext context = new XMLContext(bootstrapContext);
JaxbEntityMappings mappings = xmlHelper.readOrmXmlMappings("org/hibernate/orm/test/annotations/reflection/orm.xml");
context.addDocument(mappings);
}
use of org.hibernate.orm.test.internal.util.xml.XMLMappingHelper in project hibernate-orm by hibernate.
the class Ejb3XmlTestCase method getContext.
protected XMLContext getContext(InputStream is, String resourceName) throws Exception {
XMLMappingHelper xmlHelper = new XMLMappingHelper();
JaxbEntityMappings mappings = xmlHelper.readOrmXmlMappings(is, resourceName);
XMLContext context = new XMLContext(bootstrapContext);
context.addDocument(mappings);
return context;
}
use of org.hibernate.orm.test.internal.util.xml.XMLMappingHelper in project hibernate-orm by hibernate.
the class JPAXMLOverriddenAnnotationReaderTest method buildContext.
private XMLContext buildContext(String ormfile) throws IOException {
XMLMappingHelper xmlHelper = new XMLMappingHelper();
JaxbEntityMappings mappings = xmlHelper.readOrmXmlMappings(ormfile);
XMLContext context = new XMLContext(bootstrapContext);
context.addDocument(mappings);
return context;
}
Aggregations