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 was archived by the owner on Nov 9, 2017. It is now read-only.
MyBatis Version: 3.1.1
I currently have xml resultmaps and use the @ResultMap annotaion in my mapper
interfaces. I would like to request the ability to inject a class into
@ResultMap. I would also like to request annotaions that can be added to the
fields of a class to denote what coloumns go with that field, and an annotaion
for complex feilds that basically defined them as an association.
This would be great and completely elimiate my mapper xml files.
Example:
Mapper Interface...
@Select("SELECT * FROM LOG)
@ResultMap(Log.class)
List<Log> selectAllLogs();
...End Mapper Interface
Log Class...
public class Log{
@ResultColumn("DATE")
private String date;
@ResultColumn("TIME")
privte String time;
@ResultAssociation()
private User user;
}
User Class...
public class User {
@ResultColumn("FIRST_NAME")
private String firstName;
@ResultCoulmn("LAST_NAME")
private String lastName;
}
I hope my example helps to clarify my request.
Thanks,
Patrick Wiltrout
Original issue reported on code.google.com by patrick....@gmail.com on 14 Feb 2013 at 3:14
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
patrick....@gmail.com
on 14 Feb 2013 at 3:14The text was updated successfully, but these errors were encountered: