/** * If not already created, a new <code>sql-result-set-mapping</code> element will be created and returned. * Otherwise, the first existing <code>sql-result-set-mapping</code> element will be returned. * @return the instance defined for the element <code>sql-result-set-mapping</code> */ public SqlResultSetMapping<Entity<T>> getOrCreateSqlResultSetMapping() { List<Node> nodeList = childNode.get("sql-result-set-mapping"); if (nodeList != null && nodeList.size() > 0) { return new SqlResultSetMappingImpl<Entity<T>>(this, "sql-result-set-mapping", childNode, nodeList.get(0)); } return createSqlResultSetMapping(); }
/** * If not already created, a new <code>sql-result-set-mapping</code> element will be created and returned. * Otherwise, the first existing <code>sql-result-set-mapping</code> element will be returned. * @return the instance defined for the element <code>sql-result-set-mapping</code> */ public SqlResultSetMapping<Entity<T>> getOrCreateSqlResultSetMapping() { List<Node> nodeList = childNode.get("sql-result-set-mapping"); if (nodeList != null && nodeList.size() > 0) { return new SqlResultSetMappingImpl<Entity<T>>(this, "sql-result-set-mapping", childNode, nodeList.get(0)); } return createSqlResultSetMapping(); }