You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
What version of the MyBatis are you using?
3.0.4
Please describe the problem. Unit tests are best!
Given this Mapper:
interface CompanyMapper
{
@Delete("DELETE FROM companies_employees WHERE
company_id=#{company.id} AND employee_id=#{employee.id}")
remove(Company company, Employee employee);
@Delete("DELETE FROM company WHERE id=#{id}")
remove(Company company);
}
I get: "Mapped Statements collection already contains value for
CompanyMapper.remove"
What is the expected output? What do you see instead?
Polymorphic mapper methods should be supported. Instead of mapping both methods
to "remove" they could be mapped to "remove(Company, Employee)" and
"remove(Company)" accordingly which would remain consistent with the XML
configuration.
Original issue reported on code.google.com by cowwoc...@gmail.com on 17 Jan 2011 at 2:16
The text was updated successfully, but these errors were encountered:
I did a fast test with hessian mangling algorithm (patch attached) and I think
this is not a good idea.
The main problem with mangling is that statement names may became really
complex and this will generate human errors. This is not the idea of this tool
but to be simple.
I will let my test attached just in case anyone wants to follow with this
change.
Original comment by eduardo.macarron on 5 Feb 2012 at 6:04
Original issue reported on code.google.com by
cowwoc...@gmail.com
on 17 Jan 2011 at 2:16The text was updated successfully, but these errors were encountered: