vendor/plugins/rbatis/lib/rbatis.rb (line 406)
def statement(statement_type, name = statement_type, params = {}, &proc)rbatis is pretty slick, especially when you have to work with legacy databases and schemas.
...
statement.connection_provider = self
if statement.respond_to?(:resultmap=) && statement.resultmap.nil?
statement.resultmap = resultmaps[:default]
else
statement.resultmap = resultmaps[statement.resultmap]
end
statement.validate
...
end
No comments:
Post a Comment