org.mybatis.generator.codegen.mybatis3.xmlmapper.XMLMapperGenerator Java Examples

The following examples show how to use org.mybatis.generator.codegen.mybatis3.xmlmapper.XMLMapperGenerator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IntrospectedTableMyBatis3Impl.java    From mapper-generator-javafx with Apache License 2.0 5 votes vote down vote up
protected void calculateXmlMapperGenerator(AbstractJavaClientGenerator javaClientGenerator, 
        List<String> warnings,
        ProgressCallback progressCallback) {
    if (javaClientGenerator == null) {
        if (context.getSqlMapGeneratorConfiguration() != null) {
            xmlMapperGenerator = new XMLMapperGenerator();
        }
    } else {
        xmlMapperGenerator = javaClientGenerator.getMatchedXMLGenerator();
    }
    
    initializeAbstractGenerator(xmlMapperGenerator, warnings, progressCallback);
}
 
Example #2
Source File: IntrospectedTableMyBatis3Impl.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
/**
 * Calculate xml mapper generator.
 *
 * @param javaClientGenerator
 *            the java client generator
 * @param warnings
 *            the warnings
 * @param progressCallback
 *            the progress callback
 */
protected void calculateXmlMapperGenerator(AbstractJavaClientGenerator javaClientGenerator, 
        List<String> warnings,
        ProgressCallback progressCallback) {
    if (javaClientGenerator == null) {
        if (context.getSqlMapGeneratorConfiguration() != null) {
            xmlMapperGenerator = new XMLMapperGenerator();
        }
    } else {
        xmlMapperGenerator = javaClientGenerator.getMatchedXMLGenerator();
    }
    
    initializeAbstractGenerator(xmlMapperGenerator, warnings,
            progressCallback);
}
 
Example #3
Source File: IntrospectedTableMyBatis3Impl.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
protected void calculateXmlMapperGenerator(AbstractJavaClientGenerator javaClientGenerator, List<String> warnings, ProgressCallback progressCallback) {
	if (javaClientGenerator == null) {
		if (context.getSqlMapGeneratorConfiguration() != null) {
			xmlMapperGenerator = new XMLMapperGenerator();
		}
	}
	else {
		xmlMapperGenerator = javaClientGenerator.getMatchedXMLGenerator();
	}

	initializeAbstractGenerator(xmlMapperGenerator, warnings, progressCallback);
}
 
Example #4
Source File: JavaMapperGenerator.java    From mapper-generator-javafx with Apache License 2.0 4 votes vote down vote up
@Override
public AbstractXmlGenerator getMatchedXMLGenerator() {
    return new XMLMapperGenerator();
}
 
Example #5
Source File: JavaMapperGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 4 votes vote down vote up
@Override
public AbstractXmlGenerator getMatchedXMLGenerator() {
    return new XMLMapperGenerator();
}
 
Example #6
Source File: JavaMapperGenerator.java    From mybatis-generator-plus with Apache License 2.0 4 votes vote down vote up
@Override
public AbstractXmlGenerator getMatchedXMLGenerator() {
    return new XMLMapperGenerator();
}