Example usage for org.apache.ibatis.mapping ResultMapping getNestedResultMapId

List of usage examples for org.apache.ibatis.mapping ResultMapping getNestedResultMapId

Introduction

In this page you can find the example usage for org.apache.ibatis.mapping ResultMapping getNestedResultMapId.

Prototype

public String getNestedResultMapId() 

Source Link

Usage

From source file:org.molasdin.wbase.batis.support.BasicBatisEngine.java

License:Apache License

private String resultMapNameFromProp(String prop, ResultMap resultMap) {
    for (ResultMapping mapping : resultMap.getResultMappings()) {
        if (mapping.getNestedResultMapId() != null && prop.equals(mapping.getProperty())) {
            return mapping.getNestedResultMapId();
        }//from   w w  w  .j av  a2 s .  co  m
    }
    return null;
}